Parcourir la source

[Web] Do not try to detroy invalid imagick sessions

André il y a 7 ans
Parent
commit
967108c057
1 fichiers modifiés avec 0 ajouts et 1 suppressions
  1. 0 1
      data/web/inc/functions.customize.inc.php

+ 0 - 1
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'