  |
58 | 58 | | |
| |
59 | 59 | | $width = $height = ''; |
| |
60 | 60 | | |
  |
61 | | - | if ($this->_groups[$group_id]['force_size'] == '1') { |
| |
| 61 | + | if ( ($this->_groups[$group_id]['force_size'] == '1') || empty($image) ) { |
|
62 | 62 | | $width = $this->_groups[$group_id]['size_width']; |
| |
63 | 63 | | $height = $this->_groups[$group_id]['size_height']; |
| |
64 | 64 | | } |
| |
65 | 65 | | |
  |
66 | | - | return tep_image(DIR_WS_HTTP_CATALOG . DIR_WS_IMAGES . 'products/' . $this->_groups[$group_id]['code'] . '/' . $image, $title, $width, $height, $parameters); |
| |
| 66 | + | if (empty($image)) { |
| |
| 67 | + | $image = 'pixel_trans.gif'; |
| |
| 68 | + | } else { |
| |
| 69 | + | $image = 'products/' . $this->_groups[$group_id]['code'] . '/' . $image; |
| |
| 70 | + | } |
| |
| 71 | + | |
| |
| 72 | + | return tep_image(DIR_WS_HTTP_CATALOG . DIR_WS_IMAGES . $image, $title, $width, $height, $parameters); |
  |
67 | 73 | | } |
| |
68 | 74 | | |
| |
69 | 75 | | function getAddress(&$image, $group = 'default') { |