Avoid warnings in addons #639
2 changed files with 6 additions and 2 deletions
|
@ -1307,6 +1307,10 @@ function pumpio_fetchinbox(&$a, $uid)
|
|||
$success = false;
|
||||
}
|
||||
|
||||
if (!$success) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ($user->items) {
|
||||
$posts = array_reverse($user->items);
|
||||
|
||||
|
|
|
@ -1135,7 +1135,7 @@ function twitter_expand_entities(App $a, $body, $item, $picture)
|
|||
|
||||
$oembed_data = OEmbed::fetchURL($expanded_url);
|
||||
|
||||
if (empty($oembed_data)) {
|
||||
if (empty($oembed_data) || empty($oembed_data->type)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -1516,7 +1516,7 @@ function twitter_fetchparentposts(App $a, $uid, $post, TwitterOAuth $connection,
|
|||
foreach ($posts as $post) {
|
||||
$postarray = twitter_createpost($a, $uid, $post, $self, false, false, false);
|
||||
|
||||
if (emptx($postarray['body'])) {
|
||||
if (empty($postarray['body'])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue