diff options
author | Simon Rettberg | 2019-03-28 12:11:04 +0100 |
---|---|---|
committer | Simon Rettberg | 2019-03-28 13:37:28 +0100 |
commit | 20be14fbde37641f0306d7c4253cf03f70f0f3a6 (patch) | |
tree | 322a947c6919083057db5eb5bcc67de465587ceb /modules-available | |
parent | [serversetup-bwlp-ipxe] Fix duplicating builtin bootentry (diff) | |
download | slx-admin-20be14fbde37641f0306d7c4253cf03f70f0f3a6.tar.gz slx-admin-20be14fbde37641f0306d7c4253cf03f70f0f3a6.tar.xz slx-admin-20be14fbde37641f0306d7c4253cf03f70f0f3a6.zip |
[serversetup-bwlp-ipxe] PHP 5.6 compat
Diffstat (limited to 'modules-available')
-rw-r--r-- | modules-available/serversetup-bwlp-ipxe/inc/localboot.inc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules-available/serversetup-bwlp-ipxe/inc/localboot.inc.php b/modules-available/serversetup-bwlp-ipxe/inc/localboot.inc.php index 624d10e4..4203f931 100644 --- a/modules-available/serversetup-bwlp-ipxe/inc/localboot.inc.php +++ b/modules-available/serversetup-bwlp-ipxe/inc/localboot.inc.php @@ -29,10 +29,10 @@ chain -ar /tftp/sl-efi64/syslinux.efi', } elseif (count($ret) < 2) { $ret[] = 'EXIT'; } - if (!isset(self::BOOT_METHODS['PCBIOS'][$ret[0]])) { + if (null === self::BOOT_METHODS['PCBIOS'][$ret[0]]) { $ret[0] = 'SANBOOT'; } - if (!isset(self::BOOT_METHODS['EFI'][$ret[1]])) { + if (null === self::BOOT_METHODS['EFI'][$ret[1]]) { $ret[1] = 'EXIT'; } return ['PCBIOS' => $ret[0], 'EFI' => $ret[1]]; |