// Fixed #PSTEST-501

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12505 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
bMancone
2012-01-17 17:13:57 +00:00
parent a9285d5aaa
commit 17e69a102e
6 changed files with 33 additions and 8 deletions
+4 -1
View File
@@ -157,7 +157,10 @@ class ProductSupplierCore extends ObjectModel
return Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue($query);
$res = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($query);
return $res[0];
if (isset($res[0]))
return $res[0];
return $res;
}
/**