mirror of
https://github.com/standardebooks/web.git
synced 2025-07-05 06:10:36 -04:00
Fix crash when artwork image uploaded is too large.
This commit is contained in:
parent
eaa8d4f13b
commit
0d2dcc3772
3 changed files with 25 additions and 12 deletions
|
@ -45,4 +45,16 @@ class ValidationException extends AppException{
|
|||
|
||||
return false;
|
||||
}
|
||||
|
||||
public function Remove(string $exception): void{
|
||||
$newExceptions = [];
|
||||
|
||||
foreach($this->Exceptions as $childException){
|
||||
if(!is_a($childException, $exception)){
|
||||
$newExceptions[] = $childException;
|
||||
}
|
||||
}
|
||||
|
||||
$this->Exceptions = $newExceptions;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue