Здравствуйте. На сайте вверху вдруг появилось такое предупреждение Warning: Invalid argument supplied for foreach() in /home/host1350503/czmarket.ru/htdocs/www/catalog/controller/module/product_tab.php on line 32 Как это исправить, подскажите, пожалуйста. <?php class ControllerModuleProductTab extends Controller { protected function index($setting) { static $module = 0; $this->language->load('module/product_tab'); $this->data['heading_title'] = $this->language->get('heading_title'); $this->document->addScript('catalog/view/javascript/jquery/tabs.js'); $this->data['tab_latest'] = $this->language->get('tab_latest'); $this->data['tab_featured'] = $this->language->get('tab_featured'); $this->data['tab_bestseller'] = $this->language->get('tab_bestseller'); $this->data['tab_special'] = $this->language->get('tab_special'); $this->data['button_cart'] = $this->language->get('button_cart'); $this->load->model('catalog/product'); $this->load->model('tool/image'); //Latest Products $this->data['latest_products'] = array(); $latest_results = $this->model_catalog_product->getLatestProducts($setting['limit']); foreach ($latest_results as $result) { if ($result['image']) { $image = $this->model_tool_image->resize($result['image'], $setting['image_width'], $setting['image_height']); } else { $image = false; } if (($this->config->get('config_customer_price') && $this->customer->isLogged()) || !$this->config->get('config_customer_price')) { $price = $this->currency->format($this->tax->calculate($result['price'], $result['tax_class_id'], $this->config->get('config_tax'))); } else { $price = false; }