🐛 returnn array of strings

The downstream version checking code expects an array of strings and the "github is unreachable"
default was returning a string.
This commit is contained in:
Lucas Bickel 2018-11-21 02:21:52 +01:00
parent ffc48a50d2
commit c0124b6245
1 changed files with 1 additions and 1 deletions

View File

@ -912,7 +912,7 @@ class Application_Model_Preference
self::setValue('latest_version', json_encode($latest));
self::setValue('latest_version_nextcheck', strtotime('+1 week'));
if (empty($latest)) {
return $config['airtime_version'];
return array($config['airtime_version']);
} else {
return $latest;
}