From e4ca583203fa790174d9f9dd7c928c14de163577 Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Sat, 12 Jan 2008 14:04:47 +0000 Subject: * fixed 'uninitialized value' warning git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1468 95ad53e4-c205-0410-b2fa-d234c58c8868 --- config-db/slxconfig-demuxer | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'config-db') diff --git a/config-db/slxconfig-demuxer b/config-db/slxconfig-demuxer index 3edbecf7..9e571808 100755 --- a/config-db/slxconfig-demuxer +++ b/config-db/slxconfig-demuxer @@ -376,10 +376,12 @@ sub writePXEMenus # now append (and thus override) the PXE-template with the settings of the # selected PXE-theme, if any my $pxeTheme = $openslxConfig{'pxe-theme'}; - my $pxeThemeConfig - = "$openslxConfig{'base-path'}/share/themes/${pxeTheme}/pxe/theme.conf"; - if (-e $pxeThemeConfig) { - $pxeTemplate .= slurpFile($pxeThemeConfig); + if (defined $pxeTheme) { + my $pxeThemeConfig + = "$openslxConfig{'base-path'}/share/themes/${pxeTheme}/pxe/theme.conf"; + if (-e $pxeThemeConfig) { + $pxeTemplate .= slurpFile($pxeThemeConfig); + } } # fetch info about margin and replace the corresponding placeholders -- cgit v1.2.3-55-g7522