diff options
author | James Walker <walkah@walkah.net> | 2010-02-09 03:16:21 -0500 |
---|---|---|
committer | James Walker <walkah@walkah.net> | 2010-02-09 03:16:21 -0500 |
commit | 4c7ac503d44b8ca74f68e03dd297916691e7f884 (patch) | |
tree | e6dbe88ee84bea9c16b756162add161d6cf72c0d | |
parent | 841981a38140b793b7e950a0d2e057c720816ccb (diff) | |
parent | 602b01a7554a2ba50ed169db45d57c54823642a0 (diff) |
Merge remote branch 'statusnet/testing' into testing
-rw-r--r-- | actions/editapplication.php | 2 | ||||
-rw-r--r-- | actions/newapplication.php | 2 |
2 files changed, 2 insertions, 2 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; 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); } } |