Re: re: TreeMenu and Recursive algorithms
| From: | Jeroen Houben | Date: | Thu, 17 Apr 2003 08:50:37 +0000 |
| Subject: | Re: re: TreeMenu and Recursive algorithms | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-15212@lists.php.net to get a copy of this message | ||
Hi Wolfram,
I saw this bit of code in Memory.php (PEAR::Tree)
function switchDataSource( $type , $dsn='' , $options=array() )
{
$data = $this->getNode();
//$this->Tree( $dsn , $options );
$this->Tree_Memory( $type , $GLOBALS['dummy'] , $options );
// this method prepares data retreived using getNode to be used
// in this type of tree
$this->dataSourceClass->setData($data);
$this->setup();
}
What does the $GLOBALS['dummy'] do? It produces a notice:
*Notice*: Undefined index: dummy in */usr/local/share/php/pear/Tree/Memory.php* on line *198*
Perhaps you can use null instead.
Cheers,
- Jeroen