forked from friendica/friendica-addons
php warning if no jappix users configured
This commit is contained in:
parent
9aa34f106c
commit
02f12234f1
BIN
jappixmini.tgz
BIN
jappixmini.tgz
Binary file not shown.
|
@ -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'");
|
$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.");
|
logger("jappixmini: Update list of contacts' jabber accounts for ".count($users)." users.");
|
||||||
|
|
||||||
|
if(! count($users))
|
||||||
|
return;
|
||||||
|
|
||||||
foreach ($users as $row) {
|
foreach ($users as $row) {
|
||||||
$uid = $row["uid"];
|
$uid = $row["uid"];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue