X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fdbm.php;h=6098dce739feec494587391382643249e39d4b4c;hb=722b18ead7adf0a56f1af3f5af5070540ccd9fc7;hp=72d309b22ef16c940e0d41ca3963dc501a245cf1;hpb=3d6e3cbb78aa7791068ebad173a53c9cf600625a;p=friendica.git diff --git a/include/dbm.php b/include/dbm.php index 72d309b22e..6098dce739 100644 --- a/include/dbm.php +++ b/include/dbm.php @@ -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); } }