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 467cdfeb34
commit cef6fce7f0

View file

@ -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)
);