From 08b44d7f488b1d4969fc0e89194a6242ebda081a Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Tue, 6 May 2014 09:44:38 +0200 Subject: [PATCH] [FIX] Added missing curly braces --- include/smarty_globals.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/smarty_globals.inc.php b/include/smarty_globals.inc.php index 839c6543..86a5f1d0 100644 --- a/include/smarty_globals.inc.php +++ b/include/smarty_globals.inc.php @@ -187,8 +187,8 @@ if (@$_SESSION['USERDATA']['id']) { if ($setting->getValue('maintenance')) $_SESSION['POPUP'][] = array('CONTENT' => 'This pool is currently in maintenance mode.', 'TYPE' => 'alert alert-warning'); -if ($motd = $setting->getValue('system_motd')) - switch ($setting->getValue('system_motd_style')) { +if ($motd = $setting->getValue('system_motd')) { + switch ($setting->getValue('system_motd_style', 0)) { case 0: $motd_style = "alert-success"; break; @@ -205,6 +205,7 @@ if ($motd = $setting->getValue('system_motd')) $motd_style = "alert-info"; } $_SESSION['POPUP'][] = array('CONTENT' => $motd, 'DISMISS' => 'yes', 'ID' => 'motd', 'TYPE' => 'alert ' . $motd_style . ''); +} // check for deprecated theme if ($setting->getValue('website_theme') == "mpos")