aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_calendar.inc.php
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2010-03-23 11:08:09 +0000
committerpatdenice <patdenice@piwigo.org>2010-03-23 11:08:09 +0000
commit87f5424cca63ddce78c25853881d0116e0c0c5ee (patch)
treed9235b0c77623a829fbe5613e0ef6b21274894a6 /include/functions_calendar.inc.php
parenta6c771547decb2667c3b9b2cde769dd3fe51bc0c (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--include/functions_calendar.inc.php1
1 files changed, 1 insertions, 0 deletions
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)