Merge branch 'master' of gitorious.org:statusnet/mainline into testing

This commit is contained in:
Brion Vibber 2010-02-04 13:11:41 -08:00
commit ed8553eea8

View File

@ -280,7 +280,7 @@ class RegisterAction extends Action
function nicknameExists($nickname) function nicknameExists($nickname)
{ {
$user = User::staticGet('nickname', $nickname); $user = User::staticGet('nickname', $nickname);
return ($user !== false); return is_object($user);
} }
/** /**
@ -300,7 +300,7 @@ class RegisterAction extends Action
return false; return false;
} }
$user = User::staticGet('email', $email); $user = User::staticGet('email', $email);
return ($user !== false); return is_object($user);
} }
// overrrided to add entry-title class // overrrided to add entry-title class