X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fqueue_fn.php;h=e43912431c762fff263432701f0c02f914457df8;hb=c3b4f9f0d308a1642a9986e73f04f36bb7e2fb62;hp=613571c84792bb5a751dac1ded3455de9bc2a3be;hpb=189a31e6287781e03a874b13e27dedefe2beedf3;p=friendica.git diff --git a/include/queue_fn.php b/include/queue_fn.php index 613571c847..e43912431c 100644 --- a/include/queue_fn.php +++ b/include/queue_fn.php @@ -21,7 +21,16 @@ function was_recently_delayed($cid) { and last > UTC_TIMESTAMP() - interval 15 minute limit 1", intval($cid) ); + if(count($r)) + return true; + $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) + ); + if(count($r)) + return true; + + return false; }