From b735961560d676f46bc43679f169ec2b0134de69 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 22 Sep 2014 16:23:59 -0700 Subject: found the sucker --- include/notifier.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/notifier.php') diff --git a/include/notifier.php b/include/notifier.php index 0c7a15452..47072415b 100644 --- a/include/notifier.php +++ b/include/notifier.php @@ -477,11 +477,13 @@ function notifier_run($argv, $argc){ where hubloc_hash in (" . implode(',',$recipients) . ") group by hubloc_sitekey order by hubloc_connected desc limit 1"); } else { + $r = q("select hubloc_guid, hubloc_url, hubloc_sitekey, hubloc_network, hubloc_flags, hubloc_callback, hubloc_host from hubloc where hubloc_hash in (" . implode(',',$recipients) . ") and not (hubloc_flags & %d) and not (hubloc_status & %d) group by hubloc_sitekey", intval(HUBLOC_FLAGS_DELETED), intval(HUBLOC_OFFLINE) ); + } if(! $r) { -- cgit v1.2.3 From ad86cc24c843ee577df508ba4d03c34788bec991 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 23 Sep 2014 04:34:35 -0700 Subject: d* PM cont. --- include/notifier.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/notifier.php') diff --git a/include/notifier.php b/include/notifier.php index 47072415b..79a6886ad 100644 --- a/include/notifier.php +++ b/include/notifier.php @@ -158,7 +158,7 @@ function notifier_run($argv, $argc){ $message = q("SELECT * FROM `mail` WHERE `id` = %d LIMIT 1", intval($item_id) ); - if(! count($message)){ + if(! $message) { return; } xchan_mail_query($message[0]); -- cgit v1.2.3