aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--admin/picture_modify.php2
-rw-r--r--include/functions_calendar.inc.php1
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)