Fixed warning about undefined variable, and fixed bug #1758 - after saving system prefs, you are not returned to system prefs.
This commit is contained in:
parent
09fae2140f
commit
f04c6ee742
1 changed files with 14 additions and 12 deletions
|
@ -100,6 +100,7 @@ switch($_REQUEST['act']){
|
||||||
|
|
||||||
case "changeStationPrefs":
|
case "changeStationPrefs":
|
||||||
$uiHandler->changeStationPrefs(array_merge($_REQUEST, $_FILES), $ui_fmask["stationPrefs"]);
|
$uiHandler->changeStationPrefs(array_merge($_REQUEST, $_FILES), $ui_fmask["stationPrefs"]);
|
||||||
|
$uiHandler->redirUrl = UI_BROWSER."?act=changeStationPrefs";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "SP.addItem":
|
case "SP.addItem":
|
||||||
|
@ -435,10 +436,11 @@ switch($_REQUEST['act']){
|
||||||
if ($uiHandler->alertMsg) {
|
if ($uiHandler->alertMsg) {
|
||||||
$_SESSION['alertMsg'] = $uiHandler->alertMsg;
|
$_SESSION['alertMsg'] = $uiHandler->alertMsg;
|
||||||
}
|
}
|
||||||
|
$ui_wait = 0;
|
||||||
if (ob_get_contents()) {
|
if (ob_get_contents()) {
|
||||||
$ui_wait = 10;
|
$ui_wait = 10;
|
||||||
}
|
}
|
||||||
ob_end_clean;
|
ob_end_clean();
|
||||||
?>
|
?>
|
||||||
<meta http-equiv="refresh" content="<?php echo $ui_wait ? $ui_wait : 0; ?>; URL=<?php echo $uiHandler->redirUrl; ?>">
|
<meta http-equiv="refresh" content="<?php echo $ui_wait ? $ui_wait : 0; ?>; URL=<?php echo $uiHandler->redirUrl; ?>">
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue