]> git.mxchange.org Git - friendica.git/blobdiff - include/poller.php
API: use regex instead of SimpleXMLElement
[friendica.git] / include / poller.php
index 2eca03ef98e346b9aa238a09ca13ef24f44b9015..d134f30d0fac270001d5cac8d9e98bc1411d81d7 100644 (file)
@@ -209,7 +209,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 (!dbm::is_result($r)) {
                // No processing here needed
                return;
        }