summaryrefslogtreecommitdiff
path: root/classes/api.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-11-18 09:04:08 +0300
committerAndrew Dolgov <[email protected]>2021-11-18 09:04:08 +0300
commit9e469b16428e01125fefdea22056ed03d6ca7c67 (patch)
tree44da29f4529fe83e262e5509483ddd7e580186df /classes/api.php
parent10a1d4d8797deb9f1d27ec2de207768da62ec4c0 (diff)
api: a few more returns in login
Diffstat (limited to 'classes/api.php')
-rwxr-xr-xclasses/api.php2
1 files changed, 2 insertions, 0 deletions
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));