diff --git a/apps/files_sharing/lib/cache.php b/apps/files_sharing/lib/cache.php
index 3a8e703740ff7d60ad1808db97e4aedab848c272..0f57707f146e2073467ae28bddc32c5bbecf871e 100644
--- a/apps/files_sharing/lib/cache.php
+++ b/apps/files_sharing/lib/cache.php
@@ -103,7 +103,7 @@ class Shared_Cache extends Cache {
 			$data['encrypted'] = (bool)$data['encrypted'];
 			$data['mimetype'] = $this->getMimetype($data['mimetype']);
 			$data['mimepart'] = $this->getMimetype($data['mimepart']);
-			if ($data['storage_mtime'] == 0) {
+			if ($data['storage_mtime'] === 0) {
 				$data['storage_mtime'] = $data['mtime'];
 			}
 			return $data;