php warning if no jappix users configured

This commit is contained in:
friendica 2012-06-28 21:29:10 -07:00
parent 9aa34f106c
commit 02f12234f1
2 changed files with 3 additions and 0 deletions

Binary file not shown.

View File

@ -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"];