mirror of
https://github.com/friendica/friendica
synced 2024-11-18 04:23:41 +00:00
Prevent fatal error when $friends isn't an array
This commit is contained in:
parent
03c5c7ca0a
commit
8d7fb35463
1 changed files with 4 additions and 0 deletions
|
@ -57,6 +57,10 @@ function ostatus_subscribe_content(App $a)
|
|||
|
||||
$friends = json_decode(PConfig::get($uid, 'ostatus', 'legacy_friends'));
|
||||
|
||||
if (empty($friends)) {
|
||||
$friends = [];
|
||||
}
|
||||
|
||||
$total = sizeof($friends);
|
||||
|
||||
if ($counter >= $total) {
|
||||
|
|
Loading…
Reference in a new issue