Ticket #14525: 14525.diff
File 14525.diff, 1.2 KB (added by , 14 years ago) |
---|
-
blogger-importer.php
1027 1027 $this->in_content = array(); 1028 1028 } else { 1029 1029 $endtag = $this->ns_to_prefix($name); 1030 if ( strpos($this->in_content[count($this->in_content)-1], '<' . $endtag) !== false) {1030 if ( is_string( $this->in_content[count($this->in_content)-1] ) && strpos($this->in_content[count($this->in_content)-1], '<' . $endtag) !== false) { 1031 1031 array_push($this->in_content, "/>"); 1032 1032 } else { 1033 1033 array_push($this->in_content, "</$endtag>"); … … 1055 1055 #print str_repeat(" ", $this->depth * $this->indent) . "data: #" . $data . "#\n"; 1056 1056 if (!empty($this->in_content)) { 1057 1057 // handle self-closing tags (case: text node found, need to close element started) 1058 if ( strpos($this->in_content[count($this->in_content)-1], '<') !== false) {1058 if ( is_string( $this->in_content[count($this->in_content)-1] ) && strpos($this->in_content[count($this->in_content)-1], '<') !== false) { 1059 1059 array_push($this->in_content, ">"); 1060 1060 } 1061 1061 array_push($this->in_content, $this->xml_escape($data));