diff --git a/lib/SimpleZabbixApi.php b/lib/SimpleZabbixApi.php index 5215133..5b32f9a 100644 --- a/lib/SimpleZabbixApi.php +++ b/lib/SimpleZabbixApi.php @@ -44,11 +44,11 @@ function request($method, $params) { function auth($username, $password) { if (is_null($password)) { $login_params = array( - 'user' => $username + 'username' => $username ); } else { $login_params = array( - 'user' => $username, + 'username' => $username, 'password' => $password ); }