diff options
Diffstat (limited to 'docs/RPC/jsonrpc.php')
-rw-r--r-- | docs/RPC/jsonrpc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/RPC/jsonrpc.php b/docs/RPC/jsonrpc.php index dda1412b1..a4413b35c 100644 --- a/docs/RPC/jsonrpc.php +++ b/docs/RPC/jsonrpc.php @@ -90,8 +90,8 @@ class AnopeRPC { $ret = $this->run("checkAuthentication", [$account, $pass]); - if ($ret && array_key_exists("account", $ret)) { - return $ret["account"]; + if ($ret && array_key_exists("result", $ret) && array_key_exists("account", $ret["result"])) { + return $ret["result"]["account"]; } return null; |