If I remove this code snippet from header.inc.php then the nav disappears in all the pages.<?php if($nav){ ?> <ul id="nav" class="flush-left"> <?php if($nav && ($navs=$nav->getNavLinks()) && is_array($navs)){ foreach($navs as $name =>$nav) { echo sprintf('<li><a class="%s %s" href="%s">%s</a></li>%s',$nav?'active':'',$name,(ROOT_PATH.$nav),$nav,"\n"); } } ?> </ul> <?php }else{ ?> <hr> <?php } ?>