426 | | $post_title = $entry->title[1]; |
427 | | $post_content = $entry->content[1]; |
428 | | $post_excerpt = $entry->summary[1]; |
429 | | $pubtimes = $this->get_publish_time($entry->published); |
| 428 | |
| 429 | $post_title = ''; |
| 430 | $post_content = ''; |
| 431 | $post_excerpt = ''; |
| 432 | $pubtimes = ''; |
| 433 | |
| 434 | if ( isset( $entry->title ) && is_array( $entry->title ) && !empty( $entry->title[1] ) ) |
| 435 | $post_title = (string) $entry->title[1]; |
| 436 | if ( isset( $entry->content ) && is_array( $entry->content ) && !empty( $entry->content[1] ) ) |
| 437 | $post_content = (string) $entry->content[1]; |
| 438 | if ( isset( $entry->summary ) && is_array( $entry->summary ) && !empty( $entry->summary[1] ) ) |
| 439 | $post_excerpt = (string) $entry->summary[1]; |
| 440 | if ( !empty( $entry->published ) ) |
| 441 | $pubtimes =(string) $entry->published; |
| 442 | |
| 443 | $pubtimes = $this->get_publish_time( $pubtimes ); |
| 444 | |