]> git.mxchange.org Git - friendica.git/blobdiff - include/poller.php
rework autocomplete: space after inserting contact without id
[friendica.git] / include / poller.php
index 7ffd47aa68e653635f5460dbaa6ff454dfbdeb9f..b0e88f73dd00e37948aaf86e537d86b088b45d11 100644 (file)
@@ -197,7 +197,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;
        }