From 9e469b16428e01125fefdea22056ed03d6ca7c67 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 18 Nov 2021 09:04:08 +0300 Subject: [PATCH] api: a few more returns in login --- classes/api.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/classes/api.php b/classes/api.php index 4509e394d..45dbdd16a 100755 --- a/classes/api.php +++ b/classes/api.php @@ -92,9 +92,11 @@ class API extends Handler { return; } else { $this->_wrap(self::STATUS_ERR, array("error" => self::E_LOGIN_ERROR)); + return; } } else { $this->_wrap(self::STATUS_ERR, array("error" => self::E_API_DISABLED)); + return; } } $this->_wrap(self::STATUS_ERR, array("error" => self::E_LOGIN_ERROR));