From: Roland Häder Date: Wed, 14 Dec 2016 16:41:28 +0000 (+0100) Subject: reverted change (which duplicated above query), thanks to @annano to point this out... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cef6fce7f0e1f836f5f5e5e875c3436998389d44;p=friendica.git reverted change (which duplicated above query), thanks to @annano to point this out. #3010 Signed-off-by: Roland Häder --- diff --git a/include/queue_fn.php b/include/queue_fn.php index 3030acc28d..f262072e6f 100644 --- a/include/queue_fn.php +++ b/include/queue_fn.php @@ -31,9 +31,7 @@ function was_recently_delayed($cid) { if (dbm::is_result($r)) return true; - // Are there queue entries that were recently added? - $r = q("SELECT `id` FROM `queue` WHERE `cid` = %d - AND `last` > UTC_TIMESTAMP() - interval 15 minute LIMIT 1", + $r = q("select `term-date` from contact where id = %d and `term-date` != '' and `term-date` != '0000-00-00 00:00:00' limit 1", intval($cid) );