mirror of
https://github.com/unraid/webgui.git
synced 2026-04-23 18:48:49 -05:00
prevent error when no keyfile
This commit is contained in:
@@ -61,7 +61,7 @@ if ($certPresent) {
|
||||
}
|
||||
$endpoint = ($certPresent && $isLegacyCert) ? "provisioncert" : "provisionwildcard";
|
||||
|
||||
$keyfile = @file_get_contents($var['regFILE']);
|
||||
$keyfile = empty($var['regFILE']) ? false : @file_get_contents($var['regFILE']);
|
||||
if ($keyfile === false) {
|
||||
response_complete(406, '{"error":"'._('License key required').'"}');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user