array_reverse in line 1233 sometimes got no array as 1st arg
parent
bc63728733
commit
4fa6a3015f
|
@ -1230,6 +1230,8 @@ function pumpio_fetchinbox(&$a, $uid) {
|
|||
$url .= '?since='.urlencode($last_id);
|
||||
|
||||
$success = $client->CallAPI($url, 'GET', array(), array('FailOnAccessError'=>true), $user);
|
||||
|
||||
if ($user->items) {
|
||||
$posts = array_reverse($user->items);
|
||||
|
||||
if (count($posts))
|
||||
|
@ -1237,6 +1239,7 @@ function pumpio_fetchinbox(&$a, $uid) {
|
|||
$last_id = $post->id;
|
||||
pumpio_dopost($a, $client, $uid, $self, $post, $own_id);
|
||||
}
|
||||
}
|
||||
|
||||
set_pconfig($uid,'pumpio','last_id', $last_id);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue