diff options
author | patdenice <patdenice@piwigo.org> | 2010-03-23 17:38:55 +0000 |
---|---|---|
committer | patdenice <patdenice@piwigo.org> | 2010-03-23 17:38:55 +0000 |
commit | 0abfb916e3aeac9d1bb0176f426ff682d8f92a6f (patch) | |
tree | 286e9f01716d30c9a0b9e4187db08d15c6a43163 | |
parent | cd0c4ae7dd3fdc9266ee834ce8348c962877945e (diff) |
Remove @, test $_POST['date_creation_year'] instead, make nicolas joyful ;-)
git-svn-id: http://piwigo.org/svn/trunk@5288 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r-- | admin/picture_modify.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/admin/picture_modify.php b/admin/picture_modify.php index 803bc83dc..557f97dad 100644 --- a/admin/picture_modify.php +++ b/admin/picture_modify.php @@ -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')); |