]> git.mxchange.org Git - friendica.git/blobdiff - include/dbm.php
Merge pull request #2685 from annando/1607-poller-information
[friendica.git] / include / dbm.php
index 3f936947d841b742139a2981a5a660ffc4b48b36..7c8c9b8c145ebd1e709cdcad4892ec696978e43c 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 function is_result($array) {
+               return (is_array($array) && count($array) > 0);
+       }
 }
 ?>