mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-04 08:52:20 +02:00
Remove @, test $_POST['date_creation_year'] instead, make nicolas joyful ;-)
git-svn-id: http://piwigo.org/svn/trunk@5288 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -59,10 +59,11 @@ SELECT path
|
||||
if (isset($_POST['date_creation_action'])
|
||||
and 'set' == $_POST['date_creation_action'])
|
||||
{
|
||||
if (!@checkdate(
|
||||
$_POST['date_creation_month'],
|
||||
$_POST['date_creation_day'],
|
||||
$_POST['date_creation_year'])
|
||||
if (!is_numeric($_POST['date_creation_year'])
|
||||
or !checkdate(
|
||||
$_POST['date_creation_month'],
|
||||
$_POST['date_creation_day'],
|
||||
$_POST['date_creation_year'])
|
||||
)
|
||||
{
|
||||
array_push($page['errors'], l10n('wrong date'));
|
||||
|
||||
Reference in New Issue
Block a user