function loadProfiles()
{
global $database;
$database->setQuery('SELECT #__users.username, #__comprofiler.user_id,
#__comprofiler.avatar FROM #__users, #__comprofiler
WHERE #__users.id = #__comprofiler.user_id');
$userList = $database->loadAssocList();
$this->_profiles = array();
foreach ($userList as $item) {
if ($this->_avatar) $this->_profiles[$item['username']]['avatar'] = $item['avatar'];
else $this->_profiles[$item['username']]['avatar'] = false;
if ($this->_profile) $this->_profiles[$item['username']]['id'] = $item['user_id'];
else $this->_profiles[$item['username']]['id'] = false;
}
unset($userList);
}
}
?>
questo è il codice dalla linea 152 fino alla fine del file properties.php che mi dava l'errore, la linea dell'errore è alla 160 cioe foreach ($userList as $item) {