#12718 fix error on signature package ums

This commit is contained in:
Jonathan 2024-01-30 10:11:53 +01:00
parent db05fdb341
commit 6091071f03
1 changed files with 6 additions and 1 deletions

View File

@ -2383,7 +2383,7 @@ class Client
// Retrieve package from UMS. // Retrieve package from UMS.
$this->notify(0, 'Downloading server update '.$version); $this->notify(0, 'Downloading server update '.$version);
$this->post( $package = $this->post(
[ [
'action' => 'get_server_package', 'action' => 'get_server_package',
'arguments' => ['version' => $version], 'arguments' => ['version' => $version],
@ -2407,6 +2407,11 @@ class Client
return false; return false;
} }
if (empty($package) === true) {
$this->lastError = 'Error on Package from UMS';
return false;
}
if ($this->propagateUpdates === true) { if ($this->propagateUpdates === true) {
$this->saveSignature( $this->saveSignature(
$signature, $signature,