Skip to content

Commit e99e9f2

Browse files
committed
fix error when moving images without thumbnail
1 parent 1d8da5a commit e99e9f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controllers/RenameController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function getRename()
4848
event(new ImageIsRenaming($old_file->path('absolute'), $new_file));
4949
}
5050

51-
if ($old_file->isImage()) {
51+
if ($old_file->hasThumb()) {
5252
$this->lfm->setName($old_name)->thumb()
5353
->move($this->lfm->setName($new_name)->thumb());
5454
}

0 commit comments

Comments
 (0)