mirror of
https://github.com/standardebooks/web.git
synced 2025-07-22 07:14:59 -04:00
Fix artwork validation logic
This commit is contained in:
parent
78f31ceb6b
commit
c51fe594bf
2 changed files with 6 additions and 2 deletions
|
@ -68,6 +68,10 @@ try{
|
|||
$artwork->Status = $newStatus;
|
||||
}
|
||||
|
||||
if(HttpInput::File('artwork-image') === null){
|
||||
$artwork->MimeType = $originalArtwork->MimeType;
|
||||
}
|
||||
|
||||
$artwork->Save(HttpInput::File('artwork-image'));
|
||||
|
||||
$_SESSION['artwork'] = $artwork;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue