X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fnewapplication.php;h=8b150c315139d8c3fdb446685b05d3313c28684f;hb=f11c1c77cab7d7310ec0d2c17bc6f35c491f2871;hp=c0c520797993643672f6b96fd504111ef6f7f54c;hpb=ed8553eea8b308ae0e686fdf96d3e209e83be28c;p=quix0rs-gnu-social.git diff --git a/actions/newapplication.php b/actions/newapplication.php index c0c5207979..8b150c3151 100644 --- a/actions/newapplication.php +++ b/actions/newapplication.php @@ -170,7 +170,7 @@ class NewApplicationAction extends OwnerDesignAction } elseif (Oauth_application::descriptionTooLong($description)) { $this->showForm(sprintf( _('Description is too long (max %d chars).'), - Oauth_application::maxDescription())); + Oauth_application::maxDesc())); return; } elseif (empty($source_url)) { $this->showForm(_('Source URL is required.')); @@ -290,7 +290,7 @@ class NewApplicationAction extends OwnerDesignAction function nameExists($name) { $app = Oauth_application::staticGet('name', $name); - return ($app !== false); + return !empty($app); } }