summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps/settings/save_prefs.inc
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2007-12-10 15:27:19 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2007-12-10 15:27:19 +0000
commit7a790a51bb6acd65b193660367c8af3629256907 (patch)
tree46a1289f5e2cd9b32906f1ab037c676a829f6e9e /roundcubemail/program/steps/settings/save_prefs.inc
parent291aa89005cb17ccbc05a95e6f0e7651230836ed (diff)
New class rcube_user + send message disposition notification
git-svn-id: https://svn.roundcube.net/trunk@938 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/settings/save_prefs.inc')
-rw-r--r--roundcubemail/program/steps/settings/save_prefs.inc7
1 files changed, 2 insertions, 5 deletions
diff --git a/roundcubemail/program/steps/settings/save_prefs.inc b/roundcubemail/program/steps/settings/save_prefs.inc
index 0565260f0..caa4a49e5 100644
--- a/roundcubemail/program/steps/settings/save_prefs.inc
+++ b/roundcubemail/program/steps/settings/save_prefs.inc
@@ -44,15 +44,12 @@ if (isset($_POST['_language']))
// force min size
if ($a_user_prefs['pagesize'] < 1)
- {
$a_user_prefs['pagesize'] = 10;
- }
+
if (isset($CONFIG['max_pagesize']) && ($a_user_prefs['pagesize'] > $CONFIG['max_pagesize']))
- {
$a_user_prefs['pagesize'] = (int) $CONFIG['max_pagesize'];
- }
-if (rcmail_save_user_prefs($a_user_prefs))
+if ($USER->save_prefs($a_user_prefs))
$OUTPUT->show_message('successfullysaved', 'confirmation');