X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fpoller.php;h=22fdbb5e5374a016a4ec61533727782a12ac6c26;hb=b580a338f602fea96e42f988fa468d55689dd62f;hp=a391ea8c7528f654bd944ca1328ca7e01d86fb5b;hpb=1dd77ee443f700c4f48e8b655ceef968b8fbb753;p=friendica.git diff --git a/include/poller.php b/include/poller.php index a391ea8c75..22fdbb5e53 100644 --- a/include/poller.php +++ b/include/poller.php @@ -228,7 +228,7 @@ function poller_max_connections_reached() { function poller_kill_stale_workers() { $r = q("SELECT `pid`, `executed` FROM `workerqueue` WHERE `executed` != '0000-00-00 00:00:00'"); - if (!is_array($r) || count($r) == 0) { + if (!dba::is_result($r)) { // No processing here needed return; }