mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-25 18:43:15 +00:00
php warning if no jappix users configured
This commit is contained in:
parent
9aa34f106c
commit
02f12234f1
2 changed files with 3 additions and 0 deletions
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