mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 09:04:39 +00:00
set defaults to empty, https://github.com/opnsense/core/issues/834
This commit is contained in:
parent
eb7a9a31c5
commit
4dde2392fa
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user