]> git.mxchange.org Git - friendica-addons.git/commitdiff
And again some removed notices
authorMichael <heluecht@pirati.ca>
Sun, 22 Jul 2018 06:41:30 +0000 (06:41 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 22 Jul 2018 06:41:30 +0000 (06:41 +0000)
pumpio/pumpio.php
xmpp/xmpp.php

index 191f8505218b7ddb810142d3e0920e3dac1180ad..14ce139671bf386cc435ea15c05c7ebfac37185d 100644 (file)
@@ -1391,7 +1391,7 @@ function pumpio_getallusers(&$a, $uid)
                }
        }
 
-       if (is_array($users->items)) {
+       if (!empty($users->items)) {
                foreach ($users->items AS $user) {
                        pumpio_get_contact($uid, $user);
                }
index bef31fedd034fff6782a9a40a6f81f044e4c4a42..cda662917b95781de81025103b5cd8e01c27e051 100644 (file)
@@ -94,7 +94,7 @@ function xmpp_addon_settings(App $a, &$s)
 
 function xmpp_login()
 {
-       if (!$_SESSION["allow_api"]) {
+       if (isset($_SESSION["allow_api"]) && !$_SESSION["allow_api"]) {
                $password = random_string(16);
                PConfig::set(local_user(), "xmpp", "password", $password);
        }