summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/settings/save_prefs.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/program/steps/settings/save_prefs.inc b/program/steps/settings/save_prefs.inc
index 43285e586..0565260f0 100644
--- a/program/steps/settings/save_prefs.inc
+++ b/program/steps/settings/save_prefs.inc
@@ -47,6 +47,10 @@ 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))
$OUTPUT->show_message('successfullysaved', 'confirmation');