mirror of
https://github.com/standardebooks/web.git
synced 2025-07-04 13:57:00 -04:00
Fix logic when saving an Artwork that has a new image
This commit is contained in:
parent
3763cc0783
commit
b569cb3aee
1 changed files with 1 additions and 1 deletions
|
@ -503,7 +503,7 @@ final class Artwork{
|
|||
// No duplicates found, continue.
|
||||
}
|
||||
|
||||
if($isImageRequired){
|
||||
if($isImageRequired || $imagePath !== null){
|
||||
if($imagePath === null){
|
||||
$error->Add(new Exceptions\InvalidImageUploadException('An image is required.'));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue