浏览代码

[Web] Do not try to detroy invalid imagick sessions

André 7 年之前
父节点
当前提交
967108c057
共有 1 个文件被更改,包括 0 次插入1 次删除
  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();
               $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'