From 675040a7e25118a92670c73804a41053a4d32947 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 28 Aug 2020 13:28:00 +0200 Subject: [serversetup-bwlp-ipxe] Fix UTF-8 fix, fix gaps not being displayed --- modules-available/serversetup-bwlp-ipxe/inc/scriptbuilderipxe.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules-available/serversetup-bwlp-ipxe/inc') diff --git a/modules-available/serversetup-bwlp-ipxe/inc/scriptbuilderipxe.inc.php b/modules-available/serversetup-bwlp-ipxe/inc/scriptbuilderipxe.inc.php index a6376b0e..3b2b847f 100644 --- a/modules-available/serversetup-bwlp-ipxe/inc/scriptbuilderipxe.inc.php +++ b/modules-available/serversetup-bwlp-ipxe/inc/scriptbuilderipxe.inc.php @@ -224,12 +224,12 @@ HERE; */ private function getMenuItemScript($requestedDefaultId, $entry) { - if ($entry->bootEntry === null || (!empty($this->platform) && !$entry->bootEntry->supportsMode($this->platform))) - return ''; $str = 'item '; if ($entry->gap) { $str .= '--gap -- '; } else { + if ($entry->bootEntry === null || (!empty($this->platform) && !$entry->bootEntry->supportsMode($this->platform))) + return ''; if ($entry->hidden && $this->hasExtension) { if ($entry->hotkey === false) return ''; // Hidden entries without hotkey are illegal -- cgit v1.2.3-55-g7522