Changeset 5288

Show
Ignore:
Timestamp:
03/23/10 18:38:55 (3 years ago)
Author:
patdenice
Message:

Remove @, test $_POSTdate_creation_year instead, make nicolas joyful ;-)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/admin/picture_modify.php

    r5283 r5288  
    6060    and 'set' == $_POST['date_creation_action']) 
    6161{ 
    62   if (!@checkdate( 
    63         $_POST['date_creation_month'], 
    64         $_POST['date_creation_day'], 
    65         $_POST['date_creation_year']) 
     62  if (!is_numeric($_POST['date_creation_year']) 
     63    or !checkdate( 
     64          $_POST['date_creation_month'], 
     65          $_POST['date_creation_day'], 
     66          $_POST['date_creation_year']) 
    6667    ) 
    6768  {