[FIX] Added missing curly braces

This commit is contained in:
Sebastian Grewe 2014-05-06 09:44:38 +02:00
parent 48fdf25251
commit 08b44d7f48

View File

@ -187,8 +187,8 @@ if (@$_SESSION['USERDATA']['id']) {
if ($setting->getValue('maintenance')) if ($setting->getValue('maintenance'))
$_SESSION['POPUP'][] = array('CONTENT' => 'This pool is currently in maintenance mode.', 'TYPE' => 'alert alert-warning'); $_SESSION['POPUP'][] = array('CONTENT' => 'This pool is currently in maintenance mode.', 'TYPE' => 'alert alert-warning');
if ($motd = $setting->getValue('system_motd')) if ($motd = $setting->getValue('system_motd')) {
switch ($setting->getValue('system_motd_style')) { switch ($setting->getValue('system_motd_style', 0)) {
case 0: case 0:
$motd_style = "alert-success"; $motd_style = "alert-success";
break; break;
@ -205,6 +205,7 @@ if ($motd = $setting->getValue('system_motd'))
$motd_style = "alert-info"; $motd_style = "alert-info";
} }
$_SESSION['POPUP'][] = array('CONTENT' => $motd, 'DISMISS' => 'yes', 'ID' => 'motd', 'TYPE' => 'alert ' . $motd_style . ''); $_SESSION['POPUP'][] = array('CONTENT' => $motd, 'DISMISS' => 'yes', 'ID' => 'motd', 'TYPE' => 'alert ' . $motd_style . '');
}
// check for deprecated theme // check for deprecated theme
if ($setting->getValue('website_theme') == "mpos") if ($setting->getValue('website_theme') == "mpos")