Merge pull request #1555 from nextcloud/updatestate-can-be-empty-stable10
[stable10] UpdateState is empty if no update is available
This commit is contained in:
commit
51249f7dde
|
@ -113,7 +113,7 @@ class AdminController extends Controller implements ISettings {
|
|||
'channels' => $channels,
|
||||
'newVersionString' => (empty($updateState['updateVersion'])) ? '' : $updateState['updateVersion'],
|
||||
'downloadLink' => (empty($updateState['downloadLink'])) ? '' : $updateState['downloadLink'],
|
||||
'updaterEnabled' => $updateState['updaterEnabled'],
|
||||
'updaterEnabled' => (empty($updateState['updaterEnabled'])) ? false : $updateState['updaterEnabled'],
|
||||
|
||||
'notify_groups' => implode('|', $notifyGroups),
|
||||
];
|
||||
|
|
|
@ -161,7 +161,7 @@ class AdminControllerTest extends TestCase {
|
|||
$this->updateChecker
|
||||
->expects($this->once())
|
||||
->method('getUpdateState')
|
||||
->willReturn(['updaterEnabled' => false]);
|
||||
->willReturn([]);
|
||||
|
||||
$params = [
|
||||
'isNewVersionAvailable' => false,
|
||||
|
|
Loading…
Reference in New Issue