reverted change (which duplicated above query), thanks to @annano to point this out. #3010

Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
Roland Häder 2016-12-14 17:41:28 +01:00
parent ba45a292c4
commit ab50585e9a

View File

@ -31,9 +31,7 @@ function was_recently_delayed($cid) {
if (dbm::is_result($r)) if (dbm::is_result($r))
return true; return true;
// Are there queue entries that were recently added? $r = q("select `term-date` from contact where id = %d and `term-date` != '' and `term-date` != '0000-00-00 00:00:00' limit 1",
$r = q("SELECT `id` FROM `queue` WHERE `cid` = %d
AND `last` > UTC_TIMESTAMP() - interval 15 minute LIMIT 1",
intval($cid) intval($cid)
); );