From a10a8361a7a0e566af6215fc129ebf2ca11a7ba1 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 22 Jul 2018 06:50:34 +0000 Subject: [PATCH] This will work --- xmpp/xmpp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmpp/xmpp.php b/xmpp/xmpp.php index cda66291..e93ce9d5 100644 --- a/xmpp/xmpp.php +++ b/xmpp/xmpp.php @@ -94,7 +94,7 @@ function xmpp_addon_settings(App $a, &$s) function xmpp_login() { - if (isset($_SESSION["allow_api"]) && !$_SESSION["allow_api"]) { + if (empty($_SESSION["allow_api"])) { $password = random_string(16); PConfig::set(local_user(), "xmpp", "password", $password); } -- 2.39.5