From: Gustavo Martin Morcuende Date: Mon, 10 Dec 2012 23:37:36 +0000 (+0100) Subject: Fixed error in company category index web page. X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=935e77019829aa75ecf09d54b9191fa6cb2fbe30;p=mobi%2F.git Fixed error in company category index web page. --- diff --git a/apps/companyfront/modules/category/templates/_list.php b/apps/companyfront/modules/category/templates/_list.php index 544f335..a54fef0 100644 --- a/apps/companyfront/modules/category/templates/_list.php +++ b/apps/companyfront/modules/category/templates/_list.php @@ -18,7 +18,7 @@ getNode(); - if ($node->isValidNode() && $node->hasParent() && ($node->getParent()->getId() != '1')) + if ($node->isValidNode() && $node->hasParent() && ($node->getParent()->getLevel() != '0')) { echo 'class="child-of-node-'.$node->getParent()->getId().'"'; }