Adding Avatars breaks error check
Posted: Wed Apr 04, 2012 7:59 am
Hello,
I tried searching for this, but could not find it, so here it goes:
After following your tutorial for Avatar uploading, everything works like it should. Except when it doesnt..
Basically adding the avatar to the fetch_user_info seems to have broken the current error check:
so, either with mysite/profile.php or mysite/profile.php?uid=non_existing_id the error checking breaks.
I'll note that even without the avatar section, mysite/profile.php would always warn of an undefined 'uid'. But that i could live with, by turning errors off.
So, any help is appreciated. =)
I tried searching for this, but could not find it, so here it goes:
After following your tutorial for Avatar uploading, everything works like it should. Except when it doesnt..
Basically adding the avatar to the fetch_user_info seems to have broken the current error check:
if ($user_info === false) { echo 'That user does not exist';since it no longer returns false (the avatar image always shows, regardless of)
so, either with mysite/profile.php or mysite/profile.php?uid=non_existing_id the error checking breaks.
I'll note that even without the avatar section, mysite/profile.php would always warn of an undefined 'uid'. But that i could live with, by turning errors off.
So, any help is appreciated. =)