diff --git a/adm/ajax_products_list.php b/adm/ajax_products_list.php index 146edd15..ab8848c0 100755 --- a/adm/ajax_products_list.php +++ b/adm/ajax_products_list.php @@ -67,12 +67,12 @@ WHERE (pl.name LIKE \'%'.pSQL($query).'%\' OR p.reference LIKE \'%'.pSQL($query) $link = new Link(); if ($items) foreach ($items AS $item){ - $img_path = ''; - if(isset($item['id_image']) && !empty($item['id_image'])){ + //$img_path = ''; + //if(isset($item['id_image']) && !empty($item['id_image'])){ // $image_obj = new Image((int)$item['id_image']); // $img_path = (isset($image_obj)?$image_obj->getExistingImgPath():''); - $img_path = $link->getImageLink($item['link_rewrite'], (int)$item['id_image'], 'small'); - } + //} + $img_path = $link->getImageLink($item['link_rewrite'], (int)$item['id_image'], 'small'); echo trim($item['name']).(!empty($item['reference']) ? ' (ref: '.$item['reference'].')' : '').'|'.(int)($item['id_product']).(!empty($img_path) ?'|'.($img_path):'')."\n"; }