mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-04-28 14:04:23 +02:00
checking if a variable is an array before doing array_reverse.
This commit is contained in:
parent
d34c78296e
commit
e48fb47d62
4 changed files with 18 additions and 0 deletions
|
@ -806,6 +806,10 @@ function statusnet_fetchtimeline($a, $uid) {
|
|||
$parameters["since_id"] = $lastid;
|
||||
|
||||
$items = $connection->get('statuses/user_timeline', $parameters);
|
||||
|
||||
if (!is_array($items))
|
||||
return;
|
||||
|
||||
$posts = array_reverse($items);
|
||||
|
||||
if (count($posts)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue