]> git.mxchange.org Git - friendica.git/blobdiff - include/poller.php
Merge branch 'rewrites/is_filled_array_introduced' of git://github.com/Quix0r/friendi...
[friendica.git] / include / poller.php
index a391ea8c7528f654bd944ca1328ca7e01d86fb5b..22fdbb5e5374a016a4ec61533727782a12ac6c26 100644 (file)
@@ -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;
        }