diff options
author | Simon Rettberg | 2020-04-17 16:40:48 +0200 |
---|---|---|
committer | Simon Rettberg | 2020-05-07 12:43:13 +0200 |
commit | b85240998327a16fa60071797a546c3068d190cd (patch) | |
tree | 69f2d828d32da32f632ecbf64ae81addbad7b6b1 | |
parent | [roomplanner] Remove debug spam (diff) | |
download | slx-admin-b85240998327a16fa60071797a546c3068d190cd.tar.gz slx-admin-b85240998327a16fa60071797a546c3068d190cd.tar.xz slx-admin-b85240998327a16fa60071797a546c3068d190cd.zip |
[serversetup-bwlp-ipxe] Fix: Imported PXELINUX entries are invalid
-rw-r--r-- | modules-available/serversetup-bwlp-ipxe/inc/ipxe.inc.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules-available/serversetup-bwlp-ipxe/inc/ipxe.inc.php b/modules-available/serversetup-bwlp-ipxe/inc/ipxe.inc.php index dff8aaa1..3ee33cae 100644 --- a/modules-available/serversetup-bwlp-ipxe/inc/ipxe.inc.php +++ b/modules-available/serversetup-bwlp-ipxe/inc/ipxe.inc.php @@ -318,9 +318,10 @@ class IPxe if (empty($title)) { $title = $label; } - Database::exec('INSERT IGNORE INTO serversetup_bootentry (entryid, hotkey, title, builtin, data) - VALUES (:label, :hotkey, :title, 0, :data)', [ + Database::exec('INSERT IGNORE INTO serversetup_bootentry (entryid, module, hotkey, title, builtin, data) + VALUES (:label, :module, :hotkey, :title, 0, :data)', [ 'label' => $label, + 'module' => ($entry instanceof \StandardBootEntry) ? '.exec' : '.script', 'hotkey' => $hotkey, 'title' => $title, 'data' => json_encode($data), |