From cef6fce7f0e1f836f5f5e5e875c3436998389d44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20H=C3=A4der?= Date: Wed, 14 Dec 2016 17:41:28 +0100 Subject: [PATCH] reverted change (which duplicated above query), thanks to @annano to point this out. #3010 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- include/queue_fn.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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) );