X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=actions%2Feditapplication.php;h=64cf0a5745d134fcceeb7b214844b45dc86111ec;hb=96761c14eafc5933119c95021da4bd8d89b4dd61;hp=029b622e84b3c6710a22fed339f48867a505256a;hpb=df2a08126510445f93eddbebc0551ee44c945fd5;p=quix0rs-gnu-social.git diff --git a/actions/editapplication.php b/actions/editapplication.php index 029b622e84..64cf0a5745 100644 --- a/actions/editapplication.php +++ b/actions/editapplication.php @@ -266,7 +266,7 @@ class EditApplicationAction extends OwnerDesignAction /** * Does the app name already exist? * - * Checks the DB to see someone has already registered and app + * Checks the DB to see someone has already registered an app * with the same name. * * @param string $name app name to check @@ -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;