Update queries can now also be unlimited (limited in rows)
authorRoland Häder <roland@mxchange.org>
Wed, 13 Feb 2013 01:38:01 +0000 (01:38 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 13 Feb 2013 01:38:01 +0000 (01:38 +0000)
inc/classes/main/database/databases/class_LocalFileDatabase.php

index b755a990f39f8524d5478cfbae9b4a85cb4fef6c..4d14624b90b5dec8da691dd0d594cbc95fb4e824 100644 (file)
@@ -469,7 +469,7 @@ class LocalFileDatabase extends BaseDatabaseBackend implements DatabaseBackendIn
                        $searchInstance = $dataSetInstance->getSearchInstance();
 
                        // Read the directory with some exceptions
-                       while (($dataFile = $directoryInstance->readDirectoryExcept(array('.', '..', '.htaccess', '.svn', 'info.' . $this->getFileExtension()))) && ($limitFound < $searchInstance->getLimit())) {
+                       while (($dataFile = $directoryInstance->readDirectoryExcept(array('.', '..', '.htaccess', '.svn', 'info.' . $this->getFileExtension()))) && (($limitFound < $searchInstance->getLimit()) || ($searchInstance->getLimit() == 0))) {
                                // Does the extension match?
                                if (substr($dataFile, -(strlen($this->getFileExtension()))) !== $this->getFileExtension()) {
                                        // Debug message