From e9ba9e089e0e8c3cfe9ee58abebdf6ad86f22e81 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Mon, 3 May 2010 11:53:20 +0000 Subject: [PATCH] fix another possible undefined variable in updater --- install/updates/froxlor/0.9/update_0.9.inc.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/install/updates/froxlor/0.9/update_0.9.inc.php b/install/updates/froxlor/0.9/update_0.9.inc.php index 6e644c99..8f59be45 100644 --- a/install/updates/froxlor/0.9/update_0.9.inc.php +++ b/install/updates/froxlor/0.9/update_0.9.inc.php @@ -191,7 +191,15 @@ if(isFroxlorVersion('0.9-r1')) $db->query("INSERT INTO `" . TABLE_PANEL_SETTINGS . "` (`settinggroup`, `varname`, `value`) VALUES ('spf', 'use_spf', '0');"); $db->query("INSERT INTO `" . TABLE_PANEL_SETTINGS . "` (`settinggroup`, `varname`, `value`) VALUES ('spf', 'spf_entry', '@ IN TXT \"v=spf1 a mx -all\"');"); $db->query("UPDATE `" . TABLE_PANEL_SETTINGS . "` SET `varname` = 'froxlor_graphic' WHERE `varname` = 'syscp_graphic'"); - $settings['admin']['froxlor_graphic'] = $settings['admin']['syscp_graphic']; + if(isset($settings['admin']['syscp_graphic']) + && $settings['admin']['syscp_graphic'] != '' + ){ + $settings['admin']['froxlor_graphic'] = $settings['admin']['syscp_graphic']; + } + else + { + $settings['admin']['froxlor_graphic'] = 'images/header.gif'; + } lastStepStatus(0);