Patch attached. Primarily useful for mappers that have behavior only for
a very specific parent stack.
-- 
 Edward Z. Yang                        GnuPG: 0x869C48DA
 HTML Purifier <http://htmlpurifier.org> Anti-XSS Filter
 [[ 3FA8 E9A9 7385 B691 A6FC B3CB A933 BE7D 869C 48DA ]]
Index: PhDReader.class.php
===================================================================
RCS file: /repository/phd/include/PhDReader.class.php,v
retrieving revision 1.12
diff -u -r1.12 PhDReader.class.php
--- PhDReader.class.php 21 Oct 2007 17:08:44 -0000      1.12
+++ PhDReader.class.php 5 Nov 2007 20:40:16 -0000
@@ -78,7 +78,7 @@
             if (isset($tag[$this->STACK[--$depth]])) {
                 $tag = $tag[$this->STACK[$depth]];
             } else {
-                $tag = $tag[0];
+                $tag = isset($tag[0]) ? $tag[0] : false;
             }
         } while (is_array($tag));
         return $tag;

Reply via email to