Merge pull request #660 from annando/notices-again

And again some removed notices
This commit is contained in:
Tobias Diekershoff 2018-07-24 06:34:51 +02:00 committed by GitHub
commit 26800cddb3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -1391,7 +1391,7 @@ function pumpio_getallusers(App &$a, $uid)
}
}
if (is_array($users->items)) {
if (!empty($users->items)) {
foreach ($users->items as $user) {
pumpio_get_contact($uid, $user);
}

View file

@ -94,7 +94,7 @@ function xmpp_addon_settings(App $a, &$s)
function xmpp_login()
{
if (!$_SESSION["allow_api"]) {
if (empty($_SESSION["allow_api"])) {
$password = random_string(16);
PConfig::set(local_user(), "xmpp", "password", $password);
}