PHP Classes
elePHPant
Icontem

Undefined variable $lr

Recommend this page to a friend!

      SQL Parse Convert to Tree Array  >  All threads  >  Undefined variable $lr  >  (Un) Subscribe thread alerts  
Subject:Undefined variable $lr
Summary:Notice: Undefined variable $lr in dqml2tree.php on line 359
Messages:3
Author:Michael Hansen Buur
Date:2011-02-08 10:46:39
Update:2011-02-08 10:53:30
 

  1. Undefined variable $lr   Reply   Report abuse  
Picture of Michael Hansen Buur Michael Hansen Buur - 2011-02-08 10:46:43
There is a minor issue with an undefined variable:

Notice: Undefined variable: lr in /home/www/dqml2tree.php on line 359

I guess the variable should be preinitialized to zero somewhere, but it is not clear if it is enough to do it once, or if it is something needed to be done prior to each loop in function _makeInterBranches

  2. Re: Undefined variable $lr   Reply   Report abuse  
Picture of Michael Hansen Buur Michael Hansen Buur - 2011-02-08 10:53:30 - In reply to message 1 from Michael Hansen Buur
Forgot to mention these:

Notice: Undefined index: _a in /home/www/dqml2tree.php on line 323
Notice: Undefined index: _a in /home/www/dqml2tree.php on line 323
Notice: Undefined index: _a in /home/www/dqml2tree.php on line 470
Notice: Undefined index: _z in /home/www/dqml2tree.php on line 470

  3. Re: Undefined variable $lr   Reply   Report abuse  
Picture of Ilidio Ilidio - 2015-08-06 00:19:00 - In reply to message 2 from Michael Hansen Buur
trie this version:

dropbox.com/s/6vf4vngwywxzlpm/dqml2 ...