From: Michael Date: Sun, 22 Jul 2018 06:50:34 +0000 (+0000) Subject: This will work X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a10a8361a7a0e566af6215fc129ebf2ca11a7ba1;p=friendica-addons.git This will work --- 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); }