From d88606321dd9c8d2f43d8f24789bfaad9f9b346d Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Fri, 4 Mar 2016 22:39:08 +0100 Subject: [PATCH] Just easier code ... Signed-off-by: Roland Haeder --- include/poller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/poller.php b/include/poller.php index 755862eb6..558eda25f 100644 --- a/include/poller.php +++ b/include/poller.php @@ -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; }