[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-doc-cvs
Subject:    [DOC-CVS] cvs: phd /include PhDReader.class.php
From:       "Christian Weiske" <cweiske () php ! net>
Date:       2009-05-28 7:31:27
Message-ID: cvscweiske1243495887 () cvsserver
[Download RAW message or body]

cweiske		Thu May 28 07:31:27 2009 UTC

  Modified files:              
    /phd/include	PhDReader.class.php 
  Log:
  Don't go < 0, prevent notice
  
  
http://cvs.php.net/viewvc.cgi/phd/include/PhDReader.class.php?r1=1.23&r2=1.24&diff_format=u
Index: phd/include/PhDReader.class.php
diff -u phd/include/PhDReader.class.php:1.23 phd/include/PhDReader.class.php:1.24
--- phd/include/PhDReader.class.php:1.23	Sun Dec 28 18:18:53 2008
+++ phd/include/PhDReader.class.php	Thu May 28 07:31:27 2009
@@ -1,5 +1,5 @@
 <?php
-/*  $Id: PhDReader.class.php,v 1.23 2008/12/28 18:18:53 bjori Exp $ */
+/*  $Id: PhDReader.class.php,v 1.24 2009/05/28 07:31:27 cweiske Exp $ */
 //6271
 
 class PhDReader extends XMLReader {
@@ -80,7 +80,7 @@
             $depth = $this->depth;
         }
         do {
-            if (isset($tag[$this->STACK[--$depth]])) {
+            if ($depth > 0 && isset($tag[$this->STACK[--$depth]])) {
                 $tag = $tag[$this->STACK[$depth]];
             } else {
                 $tag = $tag[0];



-- 
PHP Documentation Commits Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic