diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/EjabberdAuth.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/EjabberdAuth.php b/core/EjabberdAuth.php index c9b5ec4..d2465ce 100644 --- a/core/EjabberdAuth.php +++ b/core/EjabberdAuth.php @@ -61,7 +61,7 @@ class EjabberdAuth { } function execute($data) { - $args = explode(':', $data . ':::'); + $args = is_array($data) ? array_merge($data, [NULL,NULL,NULL]) : explode(':', $data . ':::'); list($command, $username, $server, $password) = $args; $username = xmpp_unescape_node($username); |