diff options
author | Simon Rettberg | 2020-04-17 16:40:48 +0200 |
---|---|---|
committer | Simon Rettberg | 2020-04-17 16:40:48 +0200 |
commit | 89ca92b9b461b6c62f30833ba0aff7e516004bb9 (patch) | |
tree | 3510e3544d6418eb26455e364140c02a4705eff1 /modules-available/serversetup-bwlp-ipxe | |
parent | Add tool to find duplicate lang tags (diff) | |
download | slx-admin-89ca92b9b461b6c62f30833ba0aff7e516004bb9.tar.gz slx-admin-89ca92b9b461b6c62f30833ba0aff7e516004bb9.tar.xz slx-admin-89ca92b9b461b6c62f30833ba0aff7e516004bb9.zip |
[serversetup-bwlp-ipxe] Fix: Imported PXELINUX entries are invalid
Diffstat (limited to 'modules-available/serversetup-bwlp-ipxe')
-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), |