Skip to content

Commit

Permalink
10.6 Fix restore assets from recycle bin
Browse files Browse the repository at this point in the history
  • Loading branch information
mugge6 committed Oct 7, 2024
1 parent dd81ef4 commit 61e4465
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/Asset.php
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ protected function update($params = [])

// delete old legacy file if exists
$dbPath = $this->getDao()->getCurrentFullPath();
if ($dbPath !== $path && $storage->fileExists($dbPath)) {
if ($dbPath && $dbPath !== $path && $storage->fileExists($dbPath)) {
$storage->delete($dbPath);
}

Expand Down

0 comments on commit 61e4465

Please sign in to comment.