diff --git a/preferences/inc/class.uisettings.inc.php b/preferences/inc/class.uisettings.inc.php index 1f17fe5e07..5a22c95ba3 100755 --- a/preferences/inc/class.uisettings.inc.php +++ b/preferences/inc/class.uisettings.inc.php @@ -172,16 +172,11 @@ class uisettings if (is_array($error)) $error = false; // process_array returns the prefs-array on success - if(!$this->is_admin() || $error) - { - $GLOBALS['egw']->redirect_link($this->bo->session_data['referer']); - } - if($GLOBALS['type'] == 'user' && $_GET['appname'] == 'preferences' && $user['show_help'] != '') { $this->show_help = $user['show_help']; // use it, if admin changes his help-prefs } - if($_POST['save']) + if($_POST['save'] && !$error) { $GLOBALS['egw']->redirect_link($this->bo->session_data['referer']); } diff --git a/preferences/templates/default/preferences.tpl b/preferences/templates/default/preferences.tpl index 8ad205e940..11a1dd7b79 100644 --- a/preferences/templates/default/preferences.tpl +++ b/preferences/templates/default/preferences.tpl @@ -1,4 +1,4 @@ -
{messages}
+
{messages}