TreeMenu notice
| From: | Jeroen Houben | Date: | Thu, 17 Apr 2003 11:52:06 +0000 |
| Subject: | TreeMenu notice | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-15216@lists.php.net to get a copy of this message | ||
Hi,
In TreeMenu.php around line 164 there is this piece of code:
// Normally the text is in 'name' in the Tree class, so we check both but 'text' is used if found
$data['text'] = $aNode['text'] ? $aNode['text'] : $aNode['name'];
That gives me notice errors.
Fix (I think this should be ok)
// Normally the text is in 'name' in the Tree class, so we check both but 'text' is used if found
$data['text'] = !empty($aNode['text']) ? $aNode['text'] : $aNode['name'];
Regards,
Jeroen