// Fixed Supplier

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12380 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
bMancone
2012-01-11 18:05:33 +00:00
parent be2ee1b8da
commit fdbc4ae6af

View File

@@ -350,7 +350,8 @@ class SupplierCore extends ObjectModel
$query->where('id_product_attribute = '.(int)$id_product_attribute);
$res = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($query);
return $res[0];
if (count($res))
return $res[0];
}
}