Ignore:
Timestamp:
Jul 4, 2009, 10:39:58 PM (15 years ago)
Author:
vdigital
Message:

Minor: prevent for non numeric values (except all)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/comments.php

    r3406 r3519  
    8686{
    8787  $page['items_number'] = $_GET['items_number'];
     88}
     89if ( !is_numeric($page['items_number']) and $page['items_number']!='all' )
     90{
     91  $page['items_number'] = 10;
    8892}
    8993
Note: See TracChangeset for help on using the changeset viewer.