missing empty check

git-svn-id: svn://netflint.net/xmpphp@28 ef36c318-a008-4979-b6e8-6b496270793b
This commit is contained in:
temp 2008-04-28 22:14:46 +00:00
parent b326a5380f
commit 798d473090

View File

@ -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;
}
}