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 38e67f1..b6db990 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