Re: HTML_Menu throwing notices

From: Date: Mon, 10 May 2004 12:58:39 +0000
Subject: Re: HTML_Menu throwing notices
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-12388@lists.php.net to get a copy of this message
Jeroen Houben wrote:
Hi, Just trying to get the example at http://pear.php.net/manual/en/package.html.html-menu.intro.php to work. It does work but also throws me a notice: Notice: Undefined index: in /usr/local/share/php/pear/HTML/Menu.php on line 462
I found it. The current URL does not appear in the Menu Array so the return value on line 462 does not work. It tries to return $this->_urlMap[$this->_currentUrl]; but $this->_currentUrl is empty. Nevertheless I think this should not throw a notice. Jeroen

« previous php.pear.general (#12388) next »