diff options
Diffstat (limited to 'classes')
-rwxr-xr-x | classes/api.php | 2 |
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)); |