Explorar o código

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

stanley-king %!s(int64=8) %!d(string=hai) anos
pai
achega
3d5032a28e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;