[-] BO: Fix various bugs in categories ntree generation

This commit is contained in:
Rémi Gaillard
2012-12-11 11:19:21 +01:00
parent ecac947c2e
commit b2f01058a8
4 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -323,7 +323,7 @@ class ConfigurationCore extends ObjectModel
$result &= Db::getInstance()->update('configuration', array(
'value' => pSQL($value, $html),
'date_upd' => date('Y-m-d H:i:s'),
), '`name` = \''.pSQL($key).'\''.Configuration::sqlRestriction($id_shop_group, $id_shop), true, true);
), '`name` = \''.pSQL($key).'\''.Configuration::sqlRestriction($id_shop_group, $id_shop), 1, true);
}
else
{
@@ -504,7 +504,7 @@ class ConfigurationCore extends ObjectModel
{
if ($id_shop)
return ' AND id_shop = '.(int)$id_shop;
else if ($id_shop_group)
elseif ($id_shop_group)
return ' AND id_shop_group = '.(int)$id_shop_group.' AND id_shop IS NULL';
else
return ' AND id_shop_group IS NULL AND id_shop IS NULL';