]> git.mxchange.org Git - friendica.git/blobdiff - include/dbm.php
Merge pull request #2686 from rabuzarus/2107-contact_edit
[friendica.git] / include / dbm.php
index 3f936947d841b742139a2981a5a660ffc4b48b36..fdd9f40e762a1b1443de691390f3cca572703634 100644 (file)
@@ -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);
+       }
 }
 ?>