Also for UPDATE
authorRoland Häder <roland@mxchange.org>
Wed, 30 May 2012 22:30:55 +0000 (22:30 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 30 May 2012 22:30:55 +0000 (22:30 +0000)
inc/classes/main/database/databases/class_LocalFileDatabase.php

index 38e67f1061b405c4654fb51c5f26b22e80752e77..b6db990441dabd37cd30dadffd8336042725f7cc 100644 (file)
@@ -490,7 +490,7 @@ class LocalFileDatabase extends BaseDatabaseFrontend implements DatabaseFrontend
                                                $criteria = $searchInstance->getCriteriaElemnent($key);
 
                                                // Is the criteria met?
-                                               if ((!is_null($criteria)) && ($criteria == $value))  {
+                                               if (((!is_null($criteria)) && ($criteria == $value)) || ($searchInstance->count() == 0))  {
                                                        // Shall we skip this entry?
                                                        if ($searchInstance->getSkip() > 0) {
                                                                // We shall skip some entries