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:
paul 2006-09-01 08:44:00 +00:00
parent 09fae2140f
commit f04c6ee742

View file

@ -100,6 +100,7 @@ switch($_REQUEST['act']){
case "changeStationPrefs":
$uiHandler->changeStationPrefs(array_merge($_REQUEST, $_FILES), $ui_fmask["stationPrefs"]);
$uiHandler->redirUrl = UI_BROWSER."?act=changeStationPrefs";
break;
case "SP.addItem":
@ -435,10 +436,11 @@ switch($_REQUEST['act']){
if ($uiHandler->alertMsg) {
$_SESSION['alertMsg'] = $uiHandler->alertMsg;
}
$ui_wait = 0;
if (ob_get_contents()) {
$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; ?>">
</body>