From 0a107c7209abde1117f787e6cb0e5b3ba4eb3dec Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 30 May 2012 22:30:55 +0000 Subject: [PATCH] Also for UPDATE --- inc/classes/main/database/databases/class_LocalFileDatabase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/classes/main/database/databases/class_LocalFileDatabase.php b/inc/classes/main/database/databases/class_LocalFileDatabase.php index 38e67f10..b6db9904 100644 --- a/inc/classes/main/database/databases/class_LocalFileDatabase.php +++ b/inc/classes/main/database/databases/class_LocalFileDatabase.php @@ -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 -- 2.39.5