[-] CLASSES : fixed bug #PSCFV-2836 - Warning on Category::recurseLiteCategTree()
This commit is contained in:
1 parent
0a1e9d2124
commit
140012c62b
1 file changed
+7
-1
@@ -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
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user