Commit 4dde2392 authored by Ad Schellevis's avatar Ad Schellevis
parent eb7a9a31
......@@ -424,16 +424,16 @@ class FirmwareController extends ApiControllerBase
function getFirmwareConfigAction()
{
$result = array();
$result['mirror'] = '';
$result['flavour'] = '';
if (!empty(Config::getInstance()->object()->system->firmware->mirror)) {
$result['mirror'] = (string)Config::getInstance()->object()->system->firmware->mirror;
} else {
$result['mirror'] = '(default)';
}
if (!empty(Config::getInstance()->object()->system->firmware->flavour)) {
$result['flavour'] = (string)Config::getInstance()->object()->system->firmware->flavour;
} else {
$result['flavour'] = '(default)';
}
return $result;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment