diff --git a/apps/files_sharing/sharedstorage.php b/apps/files_sharing/sharedstorage.php index feb5d0057d..269ede7422 100644 --- a/apps/files_sharing/sharedstorage.php +++ b/apps/files_sharing/sharedstorage.php @@ -197,7 +197,7 @@ class OC_FILESTORAGE_SHARED { $dir = OC_FILESTORAGE_SHARED::opendir($path); while (($filename = readdir($dir)) != false) { $tempctime = OC_FILESTORAGE_SHARED::filectime($filename); - if ($tempctime > $ctime) { + if ($tempctime < $ctime) { $ctime = $tempctime; } }