summaryrefslogtreecommitdiff
path: root/actions/newapplication.php
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-02-08 21:52:05 -0800
committerZach Copley <zach@status.net>2010-02-08 21:52:05 -0800
commitb56b154b51ede363ee8e49ec5b9b9332b8df923c (patch)
treeda60b21e10d204fb568eae291c9dfd0b5bb7d84c /actions/newapplication.php
parentdc09453a77f33c4dfdff306321ce93cf5fbd2d57 (diff)
Better checking for duplicate app names
Diffstat (limited to 'actions/newapplication.php')
-rw-r--r--actions/newapplication.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/newapplication.php b/actions/newapplication.php
index c0c520797..0f819b349 100644
--- a/actions/newapplication.php
+++ b/actions/newapplication.php
@@ -290,7 +290,7 @@ class NewApplicationAction extends OwnerDesignAction
function nameExists($name)
{
$app = Oauth_application::staticGet('name', $name);
- return ($app !== false);
+ return !empty($app);
}
}