only to id user 1 (Admin/god)
when i try to click in my own profile the database send me this message
Quote:
Warning: Invalid argument supplied for foreach() in /home/wi180055/public_html/beta/libs/utils.php on line 406
invalid username or userid in get_avatar
|
the four line is the 406 - begin with foreach...
PHP Code:
// using this because i'm not sure if (array)$user will work in php 4
// i'm not sure if we even need all this but it makes my code work
$array = array();
foreach ($result as $key=>$value) {
if (is_object($value)) {
$array[$key]=object_2_array($value);
}
elseif (is_array($value)) {
$array[$key]=object_2_array($value);
}
else {
$array[$key]=$value;
}
}
return $array;
}
function phpnum() {
any solution?
I use 9.5 with the login patch (2) and this is so rare because i don't touch the database.
sorry my so bad inglish
Update: all user profile in my site is good, but when a user try to watch my profel (user id 1 god admin) see the error