From 798d473090d821e4616fbae2be0e511eb407a38e Mon Sep 17 00:00:00 2001 From: temp Date: Mon, 28 Apr 2008 22:14:46 +0000 Subject: [PATCH] missing empty check git-svn-id: svn://netflint.net/xmpphp@28 ef36c318-a008-4979-b6e8-6b496270793b --- xmlstream.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmlstream.php b/xmlstream.php index 646d925..099116a 100644 --- a/xmlstream.php +++ b/xmlstream.php @@ -268,7 +268,7 @@ class XMLStream { } if(is_array($this->xmlobj)) { $this->xmlobj = array_slice($this->xmlobj, 0, 1); - if($this->xmlobj[0] instanceof XMLObj) { + if(isset($this->xmlobj[0]) && $this->xmlobj[0] instanceof XMLObj) { $this->xmlobj[0]->subs = null; } }