From: Roland Häder Date: Wed, 30 May 2012 22:30:55 +0000 (+0000) Subject: Also for UPDATE X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0a107c7209abde1117f787e6cb0e5b3ba4eb3dec;p=core.git Also for UPDATE --- 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