diff options
Diffstat (limited to 'app/Controllers/apiController.php')
-rw-r--r-- | app/Controllers/apiController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Controllers/apiController.php b/app/Controllers/apiController.php index 2d9fad535..7c20b630b 100644 --- a/app/Controllers/apiController.php +++ b/app/Controllers/apiController.php @@ -21,7 +21,7 @@ class FreshRSS_api_Controller extends FreshRSS_ActionController { FreshRSS_Context::userConf()->apiPasswordHash = $apiPasswordHash; $feverKey = FreshRSS_fever_Util::updateKey($username, $apiPasswordPlain); - if (!$feverKey) { + if ($feverKey == false) { return _t('feedback.api.password.failed'); } @@ -56,7 +56,7 @@ class FreshRSS_api_Controller extends FreshRSS_ActionController { } $error = self::updatePassword($apiPasswordPlain); - if ($error) { + if (is_string($error)) { Minz_Request::bad($error, $return_url); } else { Minz_Request::good(_t('feedback.api.password.updated'), $return_url); |