]> git.mxchange.org Git - friendica.git/blobdiff - include/dba_pdo.php
Removed moved function
[friendica.git] / include / dba_pdo.php
index 7b720fb6c1217e31be5ae0368ea9facbdfcf229e..b48aba44876d5fc6bf0d64d21c211d3374338114 100644 (file)
@@ -232,6 +232,16 @@ class dba {
                }
        }
 
+       /**
+        * 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);
+       }
+
        function __destruct() {
                if ($this->db) 
                  \DDDBL\disconnect();