|
@@ -185,8 +185,11 @@ class brand_helper
|
|
|
|
|
|
$brands = [];
|
|
|
foreach ($items as $brand) {
|
|
|
- $brand['brand_logo'] = UPLOAD_SITE_URL . $brand['brand_logo'];
|
|
|
- $brands[] = $brand;
|
|
|
+ $image = UPLOAD_SITE_URL . $brand['brand_logo'];
|
|
|
+ $ret = getimagesize($image,$info);
|
|
|
+ if($ret != false) {
|
|
|
+ $brands[] = $brand;
|
|
|
+ }
|
|
|
}
|
|
|
$block = special_helper::format_grid_brands($brands);
|
|
|
wcache("brandex", array("brands" => serialize($brands),"block" => serialize($block)), $prefix);
|