Changeset 3520 for trunk/comments.php


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

merge r3519 from branch 2.0 to trunk
Minor: prevent for non numeric values (except all)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/comments.php

    r3487 r3520  
    8787{
    8888  $page['items_number'] = $_GET['items_number'];
     89}
     90if ( !is_numeric($page['items_number']) and $page['items_number']!='all' )
     91{
     92  $page['items_number'] = 10;
    8993}
    9094
Note: See TracChangeset for help on using the changeset viewer.