summaryrefslogtreecommitdiffstats
path: root/modules-available/serversetup-bwlp-ipxe/inc/ipxe.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules-available/serversetup-bwlp-ipxe/inc/ipxe.inc.php')
-rw-r--r--modules-available/serversetup-bwlp-ipxe/inc/ipxe.inc.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules-available/serversetup-bwlp-ipxe/inc/ipxe.inc.php b/modules-available/serversetup-bwlp-ipxe/inc/ipxe.inc.php
index a78ad941..2aecd70f 100644
--- a/modules-available/serversetup-bwlp-ipxe/inc/ipxe.inc.php
+++ b/modules-available/serversetup-bwlp-ipxe/inc/ipxe.inc.php
@@ -162,8 +162,10 @@ class IPxe
if (!empty($pxe->title)) {
$menuTitle = $pxe->title;
}
- if ($pxe->timeoutLabel !== null) {
+ if ($pxe->timeoutLabel !== null && $pxe->hasLabel($pxe->timeoutLabel)) {
$defaultLabel = $pxe->timeoutLabel;
+ } elseif ($pxe->hasLabel($pxe->default)) {
+ $defaultLabel = $pxe->default;
}
$timeoutMs[] = $pxe->timeoutMs;
$timeoutMs[] = $pxe->totalTimeoutMs;