]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/editapplication.php
override linkAttributes() method for groupmembersminilist
[quix0rs-gnu-social.git] / actions / editapplication.php
index 029b622e84b3c6710a22fed339f48867a505256a..64cf0a5745d134fcceeb7b214844b45dc86111ec 100644 (file)
@@ -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;