From 967108c05765a0e2813752f47c08c3f65865d6de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= Date: Thu, 16 Nov 2017 14:57:39 +0100 Subject: [PATCH] [Web] Do not try to detroy invalid imagick sessions --- data/web/inc/functions.customize.inc.php | 1 - 1 file changed, 1 deletion(-) diff --git a/data/web/inc/functions.customize.inc.php b/data/web/inc/functions.customize.inc.php index 231bc898..167647fc 100644 --- a/data/web/inc/functions.customize.inc.php +++ b/data/web/inc/functions.customize.inc.php @@ -34,7 +34,6 @@ function customize($_action, $_item, $_data = null) { $image->destroy(); } catch (ImagickException $e) { - $image->destroy(); $_SESSION['return'] = array( 'type' => 'danger', 'msg' => 'Cannot validate image file'