aboutsummaryrefslogtreecommitdiff
path: root/models
diff options
context:
space:
mode:
authorKevin Jardine <kevinjardine@yahoo.com>2012-10-06 08:55:10 +0200
committerKevin Jardine <kevinjardine@yahoo.com>2012-10-06 08:55:10 +0200
commite858bc7203426e6782b99a627bbfa1668e9d590d (patch)
treefc07aed1ae1ce5f7fd298aed5e878521f4dddf28 /models
parentb8e251041130fe0c26c9a7f0357b7317fae0bde4 (diff)
downloadelgg-e858bc7203426e6782b99a627bbfa1668e9d590d.tar.gz
elgg-e858bc7203426e6782b99a627bbfa1668e9d590d.tar.bz2
fixed problem with multiple repeating events
Diffstat (limited to 'models')
-rw-r--r--models/model.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/model.php b/models/model.php
index 05378217e..6646442e8 100644
--- a/models/model.php
+++ b/models/model.php
@@ -293,8 +293,8 @@ function event_calendar_get_repeating_event_structure($events, $start_date, $end
$dow = array('monday','tuesday','wednesday','thursday','friday','saturday','sunday');
$repeating_events = array();
if ($events) {
- $incs = array();
foreach($events as $e) {
+ $incs = array();
$repeat_data = array();
$day_num = date('N',$e->start_date)-1;
for($d=0;$d<7;$d++) {