X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fdbm.php;h=fdd9f40e762a1b1443de691390f3cca572703634;hb=f9bd6894de9e56bbbee4379e878c6d1f5703f51b;hp=3f936947d841b742139a2981a5a660ffc4b48b36;hpb=d80c21b15f7d12ae0e579d2611716b9926ffb8ad;p=friendica.git diff --git a/include/dbm.php b/include/dbm.php index 3f936947d8..fdd9f40e76 100644 --- a/include/dbm.php +++ b/include/dbm.php @@ -35,5 +35,15 @@ class dbm { } return(array("list" => $statelist, "amount" => $processes)); } + + /** + * Checks if $array is a filled array with at least one entry. + * + * @param $array mixed A filled array with at least one entry + * @return Whether $array is a filled array + */ + public static function is_result($array) { + return (is_array($array) && count($array) > 0); + } } ?>