Skip to content

Commit

Permalink
fix(files_versions): avoid unintentional skipping of expiration
Browse files Browse the repository at this point in the history
Signed-off-by: carhe <carstenherrmann@web.de>
  • Loading branch information
carhe authored and artonge committed Jun 18, 2024
1 parent 74396a2 commit 2980c83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/files_versions/lib/Storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,7 @@ public static function expire($filename, $uid) {
$pathparts = pathinfo($path);
$timestamp = (int)substr($pathparts['extension'] ?? '', 1);
$versionEntity = $versionsMapper->findVersionForFileId($file->getId(), $timestamp);
if ($versionEntity->getMetadataValue('label') !== '') {
if ($versionEntity->getMetadataValue('label') !== null && $versionEntity->getMetadataValue('label') !== '') {
continue;
}
$versionsMapper->delete($versionEntity);
Expand Down

0 comments on commit 2980c83

Please sign in to comment.