diff --git a/lib/Sabre/XML/Reader.php b/lib/Sabre/XML/Reader.php index bdec7cd..fa1ee60 100644 --- a/lib/Sabre/XML/Reader.php +++ b/lib/Sabre/XML/Reader.php @@ -53,6 +53,9 @@ class Reader extends XMLReader { public function getClark() { if (!$this->namespaceURI) { + if (isset($this->localName)) { + return $this->localName; + } return null; } return '{' . $this->namespaceURI . '}' . $this->localName;