diff options
author | Zach Copley <zach@status.net> | 2010-02-08 21:52:05 -0800 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-02-08 21:52:05 -0800 |
commit | b56b154b51ede363ee8e49ec5b9b9332b8df923c (patch) | |
tree | da60b21e10d204fb568eae291c9dfd0b5bb7d84c /actions/editapplication.php | |
parent | dc09453a77f33c4dfdff306321ce93cf5fbd2d57 (diff) |
Better checking for duplicate app names
Diffstat (limited to 'actions/editapplication.php')
-rw-r--r-- | actions/editapplication.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/editapplication.php b/actions/editapplication.php index ca5dba1e4..64cf0a574 100644 --- a/actions/editapplication.php +++ b/actions/editapplication.php @@ -277,7 +277,7 @@ class EditApplicationAction extends OwnerDesignAction function nameExists($name) { $newapp = Oauth_application::staticGet('name', $name); - if (!$newapp) { + if (empty($newapp)) { return false; } else { return $newapp->id != $this->app->id; |