[FIX] Added missing curly braces
This commit is contained in:
parent
48fdf25251
commit
08b44d7f48
@ -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")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user