[Web] Do not try to detroy invalid imagick sessions
parent
5211ab10ed
commit
967108c057
|
@ -34,7 +34,6 @@ function customize($_action, $_item, $_data = null) {
|
||||||
$image->destroy();
|
$image->destroy();
|
||||||
}
|
}
|
||||||
catch (ImagickException $e) {
|
catch (ImagickException $e) {
|
||||||
$image->destroy();
|
|
||||||
$_SESSION['return'] = array(
|
$_SESSION['return'] = array(
|
||||||
'type' => 'danger',
|
'type' => 'danger',
|
||||||
'msg' => 'Cannot validate image file'
|
'msg' => 'Cannot validate image file'
|
||||||
|
|
Loading…
Reference in New Issue