Add a default value for $data['version'] in Model\GServer

- Address https://github.com/friendica/friendica/issues/11993#issuecomment-1327320541
This commit is contained in:
Hypolite Petovan 2022-11-26 17:28:55 -05:00
parent b6d62003a6
commit a5f601718f
1 changed files with 2 additions and 2 deletions

View File

@ -1213,7 +1213,7 @@ class GServer
if (!empty($data['url'])) {
$serverdata['platform'] = strtolower($data['platform']);
$serverdata['version'] = $data['version'];
$serverdata['version'] = $data['version'] ?? 'N/A';
}
if (!empty($data['plugins'])) {