cvs: phd /include PhDReader.class.php
| From: | Christian Weiske | Date: | Thu, 28 May 2009 07:31:27 +0000 |
| Subject: | cvs: phd /include PhDReader.class.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-4073@lists.php.net to get a copy of this message | ||
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];