From a9954f1bd70aee98c0a0f06e2825ccc196eacdbe Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Fri, 25 Sep 2009 22:08:59 +1200 Subject: [PATCH] [XMLDocument] Remove uninitialised warning possibilty. --- inc/XMLDocument.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/XMLDocument.php b/inc/XMLDocument.php index a0ffdeb..f6d1449 100644 --- a/inc/XMLDocument.php +++ b/inc/XMLDocument.php @@ -174,7 +174,7 @@ class XMLDocument { $tag = $in_tag; } - if ( !isset($this->namespaces[$namespace]) ) $this->AddNamespace( $namespace ); + if ( isset($namespace) && !isset($this->namespaces[$namespace]) ) $this->AddNamespace( $namespace ); $element->NewElement( $tag, $content, $attributes, $namespace ); } -- 2.11.4.GIT