X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fdbm.php;h=7c8c9b8c145ebd1e709cdcad4892ec696978e43c;hb=18cbe9f6ff275cbb363fd9a0a5014bc8fe3d9f7b;hp=3f936947d841b742139a2981a5a660ffc4b48b36;hpb=bd01a1c63a4bb8a3b269a859b0e219b828cff2f1;p=friendica.git diff --git a/include/dbm.php b/include/dbm.php index 3f936947d8..7c8c9b8c14 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 function is_result($array) { + return (is_array($array) && count($array) > 0); + } } ?>