diff options
Diffstat (limited to 'apps/files_external/lib/irods.php')
-rw-r--r-- | apps/files_external/lib/irods.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/irods.php b/apps/files_external/lib/irods.php index a343ac5fb27..7ec3b3a0cfc 100644 --- a/apps/files_external/lib/irods.php +++ b/apps/files_external/lib/irods.php @@ -137,7 +137,7 @@ class iRODS extends \OC\Files\Storage\StreamWrapper{ private function collectionMTime($path) { $dh = $this->opendir($path); $lastCTime = $this->filemtime($path); - while ($file = readdir($dh)) { + while (($file = readdir($dh)) !== false) { if ($file != '.' and $file != '..') { $time = $this->filemtime($file); if ($time > $lastCTime) { |