X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Feditapplication.php;h=64cf0a5745d134fcceeb7b214844b45dc86111ec;hb=2600ad9643cf4bcca291998379b1668f695f9a88;hp=029b622e84b3c6710a22fed339f48867a505256a;hpb=59d16cf16ac75e18431dfd5452c748e880dafefd;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;