mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-12 10:04:26 +02:00
Fix warning "Trying to access array offset on value of type bool"
This commit is contained in:
parent
4917380716
commit
b915252e7e
4 changed files with 18 additions and 3 deletions
|
@ -1866,6 +1866,11 @@ class GServer
|
|||
return $serverdata;
|
||||
}
|
||||
|
||||
if (!is_countable($data)) {
|
||||
DI::logger()->notice('Unexpected return type', ['url' => $url, 'data' => $data, 'serverdata' => $serverdata]);
|
||||
return $serverdata;
|
||||
}
|
||||
|
||||
if (count($data) == 1) {
|
||||
$serverdata['directory-type'] = self::DT_MASTODON;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue