diff options
Diffstat (limited to 'apps/files_sharing/appinfo')
-rw-r--r-- | apps/files_sharing/appinfo/update.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/files_sharing/appinfo/update.php b/apps/files_sharing/appinfo/update.php index b43269d69f7..feafa5fb992 100644 --- a/apps/files_sharing/appinfo/update.php +++ b/apps/files_sharing/appinfo/update.php @@ -4,13 +4,13 @@ $datadir = \OCP\Config::getSystemValue('datadirectory'); $currentVersion=OC_Appconfig::getValue('files_sharing', 'installed_version'); if (version_compare($currentVersion, '0.2.2', '<')) { - if ($handle = opendir($datadir)) {
- while (false !== ($entry = readdir($handle))) {
- $sharedFolder = $datadir.'/'.$entry.'/files/Shared';
- if ($entry != "." && $entry != ".." && is_dir($sharedFolder)) {
- touch($sharedFolder);
- }
- }
- closedir($handle);
+ if ($handle = opendir($datadir)) { + while (false !== ($entry = readdir($handle))) { + $sharedFolder = $datadir.'/'.$entry.'/files/Shared'; + if ($entry != "." && $entry != ".." && is_dir($sharedFolder)) { + touch($sharedFolder); + } + } + closedir($handle); } }
\ No newline at end of file |