summaryrefslogtreecommitdiff
path: root/actions/register.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-02-04 13:12:18 -0800
committerBrion Vibber <brion@pobox.com>2010-02-04 13:12:18 -0800
commit0d0749e224bc6f125801c2cc7eca77335c142c0f (patch)
treeec68a5db7b31745217548ad17ad8bc3368a3958a /actions/register.php
parentc59eee72a8453cc43f169c62d1afb214c0c539bc (diff)
parented8553eea8b308ae0e686fdf96d3e209e83be28c (diff)
Merge branch 'testing' of gitorious.org:statusnet/mainline into 0.9.x
Diffstat (limited to 'actions/register.php')
-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