Skip to content

Commit

Permalink
Merge pull request #45932 from carhe/fix-45707
Browse files Browse the repository at this point in the history
fix(files_versions): avoid unintentional skipping of expiration
  • Loading branch information
sorbaugh authored Jul 25, 2024
2 parents ea7eeb2 + 7eac3fe commit ebfd493
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 ebfd493

Please sign in to comment.