svn: /phd/branches/PHD_0_4/include/ PhDReader.class.php

From: Date: Thu, 03 Sep 2009 15:34:46 +0000
Subject: svn: /phd/branches/PHD_0_4/include/ PhDReader.class.php
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-4823@lists.php.net to get a copy of this message
moacir Thu, 03 Sep 2009 15:34:46 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=287994 Log: Fixing the E_NOTICE undefined offset in the function notXPath Changed paths: U phd/branches/PHD_0_4/include/PhDReader.class.php Modified: phd/branches/PHD_0_4/include/PhDReader.class.php =================================================================== --- phd/branches/PHD_0_4/include/PhDReader.class.php 2009-09-03 15:05:28 UTC (rev 287993) +++ phd/branches/PHD_0_4/include/PhDReader.class.php 2009-09-03 15:34:46 UTC (rev 287994) @@ -81,7 +81,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];

« previous php.doc.cvs (#4823) next »