Ticket #175: namespace.diff
| File namespace.diff, 1.2 kB (added by sdcosta, 3 years ago) |
|---|
-
extlib/rss_parse.inc
old new 350 350 if ( $this->current_namespace ) 351 351 { 352 352 if ( $this->initem ) { 353 $real_element = ""; 354 355 $element_tree = explode("_", $el); 356 $real_element =& $this->current_item[ $this->current_namespace ]; 357 358 foreach ($element_tree as $tree_element) { 359 if (!is_array($real_element)) { 360 $real_element = array(); 361 } 362 363 $real_element =& $real_element[$tree_element]; 364 } 365 353 366 $this->concat( 354 $ this->current_item[ $this->current_namespace ][ $el ], $text);367 $real_element, $text); 355 368 } 356 369 elseif ($this->inchannel) { 357 370 $this->concat( … … 367 380 } 368 381 } 369 382 else { 370 if ( $this->initem ) {383 if ( $this->initem && !is_array($this->current_item[ $el ])) { 371 384 $this->concat( 372 385 $this->current_item[ $el ], $text); 373 386 }
