diff --git a/htdocs/comm/action/class/actioncomm.class.php b/htdocs/comm/action/class/actioncomm.class.php index cf380871926..36d551ea577 100644 --- a/htdocs/comm/action/class/actioncomm.class.php +++ b/htdocs/comm/action/class/actioncomm.class.php @@ -1375,7 +1375,7 @@ class ActionComm extends CommonObject if ($qualified && $datestart) { - $eventarray[$datestart]=$event; + $eventarray[]=$event; } } } diff --git a/htdocs/core/lib/xcal.lib.php b/htdocs/core/lib/xcal.lib.php index 14cda539291..b0a30697413 100644 --- a/htdocs/core/lib/xcal.lib.php +++ b/htdocs/core/lib/xcal.lib.php @@ -68,7 +68,7 @@ function build_calfile($format,$title,$desc,$events_array,$outputfile) fwrite($calfileh,"X-PUBLISHED-TTL: P".$hh."H".$mm."M".$ss."S\n"); } - foreach ($events_array as $date => $event) + foreach ($events_array as $key => $event) { $eventqualified=true; if ($eventqualified) @@ -335,7 +335,7 @@ function build_rssfile($format,$title,$desc,$events_array,$outputfile,$filter='' fwrite($fichier, $form); - foreach ($events_array as $date => $event) + foreach ($events_array as $key => $event) { $eventqualified=true; if ($filter)