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 --- include/functions_calendar.inc.php | 1 + 1 file changed, 1 insertion(+) (limited to 'include/functions_calendar.inc.php') 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) -- cgit v1.2.3