summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-02-04 13:11:41 -0800
committerBrion Vibber <brion@pobox.com>2010-02-04 13:11:41 -0800
commited8553eea8b308ae0e686fdf96d3e209e83be28c (patch)
tree671d63d16eca6d9c878d88a18c8aeaf66286f6ed
parenta020e230860358fc8b63cd56872bbad0446016e0 (diff)
parent239b88025ef1368bb871871ee903d6b078493f76 (diff)
Merge branch 'master' of gitorious.org:statusnet/mainline into testing
-rw-r--r--actions/register.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/register.php b/actions/register.php
index 698137346..ccab76cf0 100644
--- a/actions/register.php
+++ b/actions/register.php
@@ -280,7 +280,7 @@ class RegisterAction extends Action
function nicknameExists($nickname)
{
$user = User::staticGet('nickname', $nickname);
- return ($user !== false);
+ return is_object($user);
}
/**
@@ -300,7 +300,7 @@ class RegisterAction extends Action
return false;
}
$user = User::staticGet('email', $email);
- return ($user !== false);
+ return is_object($user);
}
// overrrided to add entry-title class