From 87f5424cca63ddce78c25853881d0116e0c0c5ee Mon Sep 17 00:00:00 2001 From: patdenice Date: Tue, 23 Mar 2010 11:08:09 +0000 Subject: Avoid error if creation date calendar is empty. Avoid error on picture_modify.php if creation date is not correct. git-svn-id: http://piwigo.org/svn/trunk@5283 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/picture_modify.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'admin/picture_modify.php') diff --git a/admin/picture_modify.php b/admin/picture_modify.php index d8f7e6dff..803bc83dc 100644 --- a/admin/picture_modify.php +++ b/admin/picture_modify.php @@ -59,7 +59,7 @@ SELECT path if (isset($_POST['date_creation_action']) and 'set' == $_POST['date_creation_action']) { - if (!checkdate( + if (!@checkdate( $_POST['date_creation_month'], $_POST['date_creation_day'], $_POST['date_creation_year']) -- cgit v1.2.3