Changeset 5288


Ignore:
Timestamp:
Mar 23, 2010, 6:38:55 PM (11 years ago)
Author:
patdenice
Message:

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

File:
1 edited

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  {
Note: See TracChangeset for help on using the changeset viewer.