Merge branch 'master' of git://haze.shylip.com/fiktivkod
This commit is contained in:
commit
89f6604baa
2 changed files with 2 additions and 2 deletions
|
|
@ -6,7 +6,7 @@ class Fiktiv_View_Helper_RenderMenu extends Zend_View_Helper_Abstract
|
|||
{
|
||||
$active = $this->view->navigation()->menu()->findActive($this->view->navigation()->getContainer());
|
||||
|
||||
if ($active['page']->hasPages()) {
|
||||
if ($active && $active['page']->hasPages()) {
|
||||
return $this->view->navigation()->menu()->setMaxDepth(0)->setUlClass('b')->renderMenu();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ class Fiktiv_View_Helper_RenderSubMenu extends Zend_View_Helper_Abstract
|
|||
{
|
||||
$active = $this->view->navigation()->menu()->findActive($this->view->navigation()->getContainer());
|
||||
|
||||
if ($active['page']->hasPages()) {
|
||||
if ($active && $active['page']->hasPages()) {
|
||||
return $this->view->navigation()->menu()->setUlClass('b')->renderSubMenu();
|
||||
}
|
||||
|
||||
|
|
|
|||
Reference in a new issue