silencing stdclass warnings
This commit is contained in:
parent
44a22c2915
commit
b3648de6f0
1 changed files with 5 additions and 6 deletions
|
@ -628,10 +628,6 @@ function fb_consume_stream($uid,$j,$wall = false) {
|
||||||
foreach($j->data as $entry) {
|
foreach($j->data as $entry) {
|
||||||
logger('fb_consume: entry: ' . print_r($entry,true), LOGGER_DATA);
|
logger('fb_consume: entry: ' . print_r($entry,true), LOGGER_DATA);
|
||||||
$datarray = array();
|
$datarray = array();
|
||||||
$we_posted = false;
|
|
||||||
$app = $entry->application;
|
|
||||||
if($app->id == get_config('facebook','appid') && $wall)
|
|
||||||
$we_posted = true;
|
|
||||||
|
|
||||||
$r = q("SELECT * FROM `item` WHERE ( `uri` = '%s' OR `extid` = '%s') AND `uid` = %d LIMIT 1",
|
$r = q("SELECT * FROM `item` WHERE ( `uri` = '%s' OR `extid` = '%s') AND `uid` = %d LIMIT 1",
|
||||||
dbesc('fb::' . $entry->id),
|
dbesc('fb::' . $entry->id),
|
||||||
|
@ -705,7 +701,10 @@ function fb_consume_stream($uid,$j,$wall = false) {
|
||||||
$orig_post = $r[0];
|
$orig_post = $r[0];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(isset($entry->likes) && isset($entry->likes->data))
|
||||||
$likers = $entry->likes->data;
|
$likers = $entry->likes->data;
|
||||||
|
if(isset($entry->comments) && isset($entry->comments->data))
|
||||||
$comments = $entry->comments->data;
|
$comments = $entry->comments->data;
|
||||||
|
|
||||||
if(is_array($likers)) {
|
if(is_array($likers)) {
|
||||||
|
|
Loading…
Reference in a new issue