missing empty check
git-svn-id: svn://netflint.net/xmpphp@28 ef36c318-a008-4979-b6e8-6b496270793b
This commit is contained in:
parent
b326a5380f
commit
798d473090
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user