]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/result/class_DatabaseResult.php
Fixed handling of cache keys as empty results caused cache keys to exist. :(
[core.git] / inc / classes / main / result / class_DatabaseResult.php
index f143a540b50999a8eda8b899f077ee3e4a49951b..11143105a5456f37c4002b24dc773ace17417a17 100644 (file)
@@ -193,6 +193,16 @@ class DatabaseResult extends BaseFrameworkSystem implements SearchableResult, Up
                return $isValid;
        }
 
+       /**
+        * Returns count of entries
+        *
+        * @return      $isValid Whether the next/rewind entry is valid
+        */
+       public function count () {
+               // Return it
+               return count($this->resultArray[BaseDatabaseBackend::RESULT_INDEX_ROWS]);
+       }
+
        /**
         * Determines whether the status of the query was fine (BaseDatabaseBackend::RESULT_OKAY)
         *