//fix correction norm and language in AdminGroups

This commit is contained in:
lLefevre
2011-09-28 09:47:33 +00:00
parent 821404ed2f
commit c0cbd0bf57
3 changed files with 26 additions and 22 deletions
+4 -4
View File
@@ -885,12 +885,12 @@ class CategoryCore extends ObjectModel
public function addGroupsIfNoExist($id_group)
{
$groups = $this->getGroups();
p($groups);
foreach($groups as $group){
if($group != $id_group)
foreach ($groups as $group)
{
if ($group == $id_group)
return false;
else
$this->addGroups(array((int)($id_group)));
return $this->addGroups(array((int)($id_group)));
}
}