X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fdbm.php;h=812989072b7232aacd7d5e0d10f0dd444ca25ef3;hb=fd3cf1cd02b57e9796e5537dbee468d1c8048a48;hp=fdd9f40e762a1b1443de691390f3cca572703634;hpb=0deea97cf296481d792429ae9d4042c66887230d;p=friendica.git diff --git a/include/dbm.php b/include/dbm.php index fdd9f40e76..812989072b 100644 --- a/include/dbm.php +++ b/include/dbm.php @@ -20,8 +20,8 @@ class dbm { foreach ($r AS $process) { $state = trim($process["State"]); - // Filter out all idle processes - if (!in_array($state, array("", "init", "statistics"))) { + // Filter out all non blocking processes + if (!in_array($state, array("", "init", "statistics", "updating"))) { ++$states[$state]; ++$processes; } @@ -43,6 +43,10 @@ class dbm { * @return Whether $array is a filled array */ public static function is_result($array) { + // It could be a return value from an update statement + if (is_bool($array)) + return $array; + return (is_array($array) && count($array) > 0); } }