Ignore:
Timestamp:
Apr 16, 2008 5:42:54 AM (5 years ago)
Author:
thomasb
Message:

Set minimum number of rows per page (#1484935)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/steps/settings/save_prefs.inc

    r1282 r1317  
    2323  'timezone'     => isset($_POST['_timezone']) ? floatval($_POST['_timezone']) : $CONFIG['timezone'], 
    2424  'dst_active'   => isset($_POST['_dst_active']) ? TRUE : FALSE, 
    25   'pagesize'     => is_numeric($_POST['_pagesize']) ? intval($_POST['_pagesize']) : $CONFIG['pagesize'], 
     25  'pagesize'     => is_numeric($_POST['_pagesize']) ? max(2, intval($_POST['_pagesize'])) : $CONFIG['pagesize'], 
    2626  'prettydate'   => isset($_POST['_pretty_date']) ? TRUE : FALSE, 
    2727  'prefer_html'  => isset($_POST['_prefer_html']) ? TRUE : FALSE, 
Note: See TracChangeset for help on using the changeset viewer.