mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
Merge pull request #45932 from carhe/fix-45707
fix(files_versions): avoid unintentional skipping of expiration
This commit is contained in:
commit
ebfd4938f6
1 changed files with 1 additions and 1 deletions
|
|
@ -896,7 +896,7 @@ class Storage {
|
|||
$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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue