]> git.mxchange.org Git - friendica.git/commitdiff
Just easier code ...
authorRoland Haeder <roland@mxchange.org>
Fri, 4 Mar 2016 21:39:08 +0000 (22:39 +0100)
committerRoland Haeder <roland@mxchange.org>
Fri, 4 Mar 2016 21:39:08 +0000 (22:39 +0100)
Signed-off-by: Roland Haeder <roland@mxchange.org>
include/poller.php

index 755862eb6bf32d51247967890910d951aed4d26a..558eda25ffbcfd2eefb827c25dc65b32e56c9c71 100644 (file)
@@ -206,7 +206,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 (!is_filled_array($r)) {
                // No processing here needed
                return;
        }