SwitchDataSource Notice error

From: Date: Thu, 17 Apr 2003 08:52:09 +0000
Subject: SwitchDataSource Notice error
References: 1 2 3 4 5 6 7 8 9  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-15213@lists.php.net to get a copy of this message
Used the wrong subject in previous post... Jeroen Houben wrote:
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


« previous php.pear.dev (#15213) next »