// Fix langMultiShop in ObjectModel

This commit is contained in:
rMalie
2012-02-08 14:33:52 +00:00
parent bd06ac34a1
commit d3dcb99419
+1 -1
View File
@@ -197,7 +197,7 @@ abstract class ObjectModelCore
{
$sql = 'SELECT * FROM `'.pSQL(_DB_PREFIX_.$this->def['table']).'_lang`
WHERE `'.$this->def['primary'].'` = '.(int)$id
.(($this->id_shop) ? ' AND `id_shop` = '.$this->id_shop : '');
.(($this->id_shop && $this->isLangMultishop()) ? ' AND `id_shop` = '.$this->id_shop : '');
$result = Db::getInstance()->executeS($sql);
if ($result)
foreach ($result as $row)