From 284aeb59038f7ff7cd022a59fd0b24a8aab401ea Mon Sep 17 00:00:00 2001 From: Marion Muszynski Date: Wed, 30 Nov 2016 12:53:19 +0100 Subject: [PATCH] fix img --- adm/ajax_products_list.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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"; }