Commit cd379a8f authored by Franco Fichtner's avatar Franco Fichtner

firmware: pkg can also change options, make sure this is caught

parent f79e2018
......@@ -59,8 +59,10 @@ class FirmwareController extends ApiControllerBase
} elseif (array_key_exists('updates', $response) && $response['updates'] == 0) {
$response['status_msg'] = gettext('There are no updates available.');
$response['status'] = 'none';
} elseif (array_key_exists(0, $response['upgrade_packages']) &&
$response['upgrade_packages'][0]['name'] == 'pkg') {
} elseif ((array_key_exists(0, $response['upgrade_packages']) &&
$response['upgrade_packages'][0]['name'] == 'pkg') ||
(array_key_exists(0, $response['reinstall_packages']) &&
$response['reinstall_packages'][0]['name'] == 'pkg')) {
$response['status_upgrade_action'] = 'pkg';
$response['status'] = 'ok';
$response['status_msg'] =
......
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