]> git.mxchange.org Git - friendica-addons.git/commitdiff
This will work
authorMichael <heluecht@pirati.ca>
Sun, 22 Jul 2018 06:50:34 +0000 (06:50 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 22 Jul 2018 06:50:34 +0000 (06:50 +0000)
xmpp/xmpp.php

index cda662917b95781de81025103b5cd8e01c27e051..e93ce9d50e496abc920cfbc10d7e994623b595bb 100644 (file)
@@ -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);
        }