Note: this list is kept only as a demonstration for CVSNotice. For the latest CVS notices, see the Xaraya and Postnuke sites
View Statistics - Next Notice - Previous NoticeDirectory filter : [ all ] / postnuke_official / html / includes [ view in CVS ]
Date | Directory [filter] | File(s) [view] | Author [filter] |
06 Aug 2002 06:05:13 | postnuke_official/html/includes | pnError.php,1.7,1.8 | Carl P. Corliss |
got rid of the 'global $depth' as it is unneeded when referencing a local class property -- should just call it with a $this->depth.... besides, global vars are BAD. |
Update of /home/cvsroot/postnuke_official/html/includes In directory ns7.hostnuke.net:/tmp/cvs-serv8356/html/includes Modified Files: pnError.php Log Message: got rid of the 'global $depth' as it is unneeded when referencing a local class property -- should just call it with a $this->depth.... besides, global vars are BAD. Index: pnError.php =================================================================== RCS file: /home/cvsroot/postnuke_official/html/includes/pnError.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** pnError.php 10 Jul 2002 15:21:36 -0000 1.7 --- pnError.php 6 Aug 2002 06:05:11 -0000 1.8 *************** *** 91,98 **** function v2($V,$Name="",$class=false) { - global $depth; ! if ($this->depth > 32) return '<p>Recursive Depth Exceeded</p>'; ! $depth += 1; $TYPE_COLOR = "RED"; $NAME_COLOR = "BLUE"; --- 91,100 ---- function v2($V,$Name="",$class=false) { ! if ($this->depth > 32) { ! return '<p>Recursive Depth Exceeded</p>'; ! } ! ! $this->depth += 1; $TYPE_COLOR = "RED"; $NAME_COLOR = "BLUE";
View Statistics - Next Notice - Previous Notice
Visit Developer Site - Browse CVS Repository |
Syndicate via backend.rss (max. once per hour please) | Powered by CVSNotice 0.1.3 |