Re: HTML_Menu throwing notices

From: Date: Tue, 11 May 2004 07:34:05 +0000
Subject: Re: HTML_Menu throwing notices
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-12411@lists.php.net to get a copy of this message
Alexey Borzov wrote:
Hi! Jeroen Houben wrote:
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.
Yes, it probably shouldn't. Please submit this as a bug. I think it's already been submitted:
http://pear.php.net/bugs/bug.php?id=784&edit=2 Or is this something slightly different? Jeroen

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