瀏覽代碼

修复因为getimagesize 函数导致系统报警告,客户端解析失败的bug

stanley-king 8 年之前
父節點
當前提交
3d5032a28e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      helper/brand_helper.php

+ 1 - 1
helper/brand_helper.php

@@ -62,7 +62,7 @@ class brand_helper
 
                 Log::record($brand['brand_logo'],Log::DEBUG);
                 $image = UPLOAD_SITE_URL . $brand['brand_logo'];
-                $ret = getimagesize($image, $info);
+                $ret = @getimagesize($image, $info);
                 if ($ret != false) {
                     $brand['brand_logo'] = $image;
                     $brands[] = $brand;