View Single Post
  #1 (permalink)  
Old 06-26-2007, 11:12 PM
bichopro's Avatar
bichopro bichopro is offline
New Pligger
 
Join Date: Feb 2007
Posts: 9
Thanks: 1
Thanked 4 Times in 2 Posts
Exclamation god/admin profile problem

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
__________________

Last edited by bichopro; 06-27-2007 at 03:15 AM.. Reason: update
Reply With Quote