Skip to content

Commit

Permalink
check image
Browse files Browse the repository at this point in the history
  • Loading branch information
zsoltoroszlany82 committed Jan 1, 2025
1 parent 3e6fcee commit e5b3248
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/catalog/controller/module/ps_live_search.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ public function autocomplete()
$tax = false;
}

if ($this->config->get('module_ps_live_search_product_image') && is_file(DIR_IMAGE . html_entity_decode($productResult['image'], ENT_QUOTES, 'UTF-8'))) {
$thumb = $this->model_tool_image->resize(html_entity_decode($productResult['image'], ENT_QUOTES, 'UTF-8'), $this->config->get('module_ps_live_search_product_image_width'), $this->config->get('module_ps_live_search_product_image_height'));
if ($this->config->get('module_ps_live_search_product_image') && !empty($productResult['image'])) {
$thumb = $this->model_tool_image->resize($productResult['image'], $this->config->get('module_ps_live_search_product_image_width'), $this->config->get('module_ps_live_search_product_image_height'));
} else {
$thumb = '';
}
Expand Down

0 comments on commit e5b3248

Please sign in to comment.