diff options
author | Simon Rettberg | 2020-09-22 15:04:09 +0200 |
---|---|---|
committer | Simon Rettberg | 2020-09-22 15:04:09 +0200 |
commit | 59ae2573d31d3bd709453c8060c1f3cec97692b5 (patch) | |
tree | 8b5dc79a6c48f79a38495df9a8062eca40a8bf95 /inc/event.inc.php | |
parent | [serversetup-bwlp-ipxe] Re-introduce support for menuid param (diff) | |
download | slx-admin-59ae2573d31d3bd709453c8060c1f3cec97692b5.tar.gz slx-admin-59ae2573d31d3bd709453c8060c1f3cec97692b5.tar.xz slx-admin-59ae2573d31d3bd709453c8060c1f3cec97692b5.zip |
[Trigger/Event] Fix minor warnings
Diffstat (limited to 'inc/event.inc.php')
-rw-r--r-- | inc/event.inc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/event.inc.php b/inc/event.inc.php index e5ade41b..2d916b48 100644 --- a/inc/event.inc.php +++ b/inc/event.inc.php @@ -64,7 +64,7 @@ class Event } else { $res = Taskmanager::waitComplete($ipxeId, 5000); if (Taskmanager::isFailed($res)) { - EventLog::failure('Update PXE Menu failed', $res['data']['error']); + EventLog::failure('Update PXE Menu failed', $res['data']['error'] ?? $res['data']['error'] ?? ''); $everythingFine = false; } } @@ -79,7 +79,7 @@ class Event $mountStatus = Taskmanager::waitComplete($mountId, 10000); } if ($mountId !== false && Taskmanager::isFailed($mountStatus)) { - EventLog::failure('Mounting VM store failed', $mountStatus['data']['messages']); + EventLog::failure('Mounting VM store failed', $mountStatus['data']['messages'] ?? ''); $everythingFine = false; } elseif ($mountId !== false && !Taskmanager::isFinished($mountStatus)) { // TODO: Still running - create callback |