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 b755a99..4d14624 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