diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-08-19 12:04:53 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-08-19 12:04:53 +0200 |
commit | c5402f457530577999d1adc1715c76e742ad8aa9 (patch) | |
tree | 85b40240d914a51513940c14179fdecdcb78ad4c /apps/files_external/lib/smb.php | |
parent | a1d5aba5fd3795a6ee4a87c96abf0d35d3f8116d (diff) | |
download | nextcloud-server-c5402f457530577999d1adc1715c76e742ad8aa9.tar.gz nextcloud-server-c5402f457530577999d1adc1715c76e742ad8aa9.zip |
use strict equals in readdir loops to prevent issues with '0' files
Diffstat (limited to 'apps/files_external/lib/smb.php')
-rw-r--r-- | apps/files_external/lib/smb.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/smb.php b/apps/files_external/lib/smb.php index 81a6c956385..dc4e02731f1 100644 --- a/apps/files_external/lib/smb.php +++ b/apps/files_external/lib/smb.php @@ -99,7 +99,7 @@ class SMB extends \OC\Files\Storage\StreamWrapper{ private function shareMTime() { $dh=$this->opendir(''); $lastCtime=0; - while($file=readdir($dh)) { + while (($file = readdir($dh)) !== false) { if ($file!='.' and $file!='..') { $ctime=$this->filemtime($file); if ($ctime>$lastCtime) { |