[-] CLASSES : fixed bug #PSCFV-2836 - Warning on Category::recurseLiteCategTree()

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16030 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vAugagneur committed 2012-06-15 07:14:58 +00:00
1 parent b2b29c4270
commit 97df2a2095
1 file changed
+7 -1
+7 -1
View File
@@ -257,11 +257,17 @@ class CategoryCore extends ObjectModel
} }
} }
if (is_array($this->description))
foreach ($this->description as $lang => $description)
$this->description[$lang] = Category::getDescriptionClean($description);
else
$this->description = Category::getDescriptionClean($this->description);
return array( return array(
'id' => (int)$this->id_category, 'id' => (int)$this->id_category,
'link' => Context::getContext()->link->getCategoryLink($this->id, $this->link_rewrite), 'link' => Context::getContext()->link->getCategoryLink($this->id, $this->link_rewrite),
'name' => $this->name, 'name' => $this->name,
'desc'=> Category::getDescriptionClean($this->description), 'desc'=> $this->description,
'children' => $children 'children' => $children
); );
} }