From: friendica Date: Fri, 29 Jun 2012 04:29:10 +0000 (-0700) Subject: php warning if no jappix users configured X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=02f12234f19d159a42f554439a90928883fb1b00;p=friendica-addons.git php warning if no jappix users configured --- diff --git a/jappixmini.tgz b/jappixmini.tgz index c7fc99a4..a49c0b4e 100644 Binary files a/jappixmini.tgz and b/jappixmini.tgz differ diff --git a/jappixmini/jappixmini.php b/jappixmini/jappixmini.php index d4b1993f..d5330633 100644 --- a/jappixmini/jappixmini.php +++ b/jappixmini/jappixmini.php @@ -488,6 +488,9 @@ function jappixmini_cron(&$a, $d) { $users = q("SELECT `uid` FROM `pconfig` WHERE `cat`='jappixmini' AND (`k`='autosubscribe' OR `k`='autoapprove') AND `v`='1'"); logger("jappixmini: Update list of contacts' jabber accounts for ".count($users)." users."); + if(! count($users)) + return; + foreach ($users as $row) { $uid = $row["uid"];