diff --git a/airtime_mvc/application/models/Preference.php b/airtime_mvc/application/models/Preference.php index 3e64bde6b..368d3e52a 100644 --- a/airtime_mvc/application/models/Preference.php +++ b/airtime_mvc/application/models/Preference.php @@ -909,13 +909,13 @@ class Application_Model_Preference $versions[] = $item->get_title(); } $latest = $versions; - self::setValue('latest_version', json_encode($latest)); self::setValue('latest_version_nextcheck', strtotime('+1 week')); if (empty($latest)) { return array($config['airtime_version']); - } else { - return $latest; } + + self::setValue('latest_version', json_encode($latest)); + return $latest; } public static function SetLatestVersion($version)