Undefined array key fixes (#14532)

* Undefined array key fixes

* Update check-services.php
This commit is contained in:
Jellyfrog
2022-10-27 21:02:27 +02:00
committed by GitHub
parent 0dd183f1e1
commit b90fbcb9bf
2 changed files with 2 additions and 2 deletions

View File

@@ -261,7 +261,7 @@ function get_device(Illuminate\Http\Request $request)
// find device matching the id
$device = device_by_id_cache($device_id);
if (! $device || ! $device['device_id']) {
if (! $device || ! isset($device['device_id'])) {
return api_error(404, "Device $hostname does not exist");
}