Plugin Directory

Changeset 1152965


Ignore:
Timestamp:
05/04/2015 02:26:34 PM (11 years ago)
Author:
egany
Message:

phong 20150504: check null at egany_facebook_to_wordpress.php:line 553 "$post->comments->data..." wporg

File:
1 edited

Legend:

Unmodified
Added
Removed
  • egany-facebook-to-wp/trunk/egany_facebook_to_wordpress.php

    r1152752 r1152965  
    550550                } 
    551551               
    552                 //show testing result ...
    553                 $post->comments->data = $arr_comment_data;
     552                //show testing result ... 
     553                if(isset($post->comments->data))
     554                    $post->comments->data = $arr_comment_data;
    554555                // // var_dump($post->comments->data[0]->id ); 
    555556                // var_dump(count($post->comments->data )); 
Note: See TracChangeset for help on using the changeset viewer.