diff options
author | patdenice <patdenice@piwigo.org> | 2010-03-23 11:08:09 +0000 |
---|---|---|
committer | patdenice <patdenice@piwigo.org> | 2010-03-23 11:08:09 +0000 |
commit | 87f5424cca63ddce78c25853881d0116e0c0c5ee (patch) | |
tree | d9235b0c77623a829fbe5613e0ef6b21274894a6 | |
parent | a6c771547decb2667c3b9b2cde769dd3fe51bc0c (diff) |
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
Diffstat (limited to '')
-rw-r--r-- | admin/picture_modify.php | 2 | ||||
-rw-r--r-- | include/functions_calendar.inc.php | 1 |
2 files changed, 2 insertions, 1 deletions
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']) diff --git a/include/functions_calendar.inc.php b/include/functions_calendar.inc.php index 4aab3ee7b..5d0329e1d 100644 --- a/include/functions_calendar.inc.php +++ b/include/functions_calendar.inc.php @@ -292,6 +292,7 @@ WHERE id IN (' . implode(',',$page['items']) .')'; function array_to_int($array) { + $result = array(); foreach ($array as $k => $v) { if ((int)$k==$k) |