aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-01-05 17:05:30 +0100
committerGeorg Ehrke <dev@georgswebsite.de>2012-01-05 17:05:30 +0100
commita88cc91ad923e6d7d128cf08e25bca645dfade00 (patch)
tree177acb4c95039f878daefa20de505cc89564faf2 /apps
parentfe59015126b08c18a14ef6dc06a80098ad13927f (diff)
downloadnextcloud-server-a88cc91ad923e6d7d128cf08e25bca645dfade00.tar.gz
nextcloud-server-a88cc91ad923e6d7d128cf08e25bca645dfade00.zip
fix end for repeating events
Diffstat (limited to 'apps')
-rw-r--r--apps/calendar/ajax/editeventform.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/calendar/ajax/editeventform.php b/apps/calendar/ajax/editeventform.php
index 4783fcca897..f605f33edbb 100644
--- a/apps/calendar/ajax/editeventform.php
+++ b/apps/calendar/ajax/editeventform.php
@@ -163,16 +163,16 @@ if($data['repeating'] == 1){
}
$repeat['interval'] = $rrulearr['INTERVAL'];
if(array_key_exists('COUNT', $rrulearr)){
- $end = 'count';
- $count = $rrulearr['COUNT'];
+ $repeat['end'] = 'count';
+ $repeat['count'] = $rrulearr['COUNT'];
}elseif(array_key_exists('UNTIL', $rrulearr)){
- $end = 'date';
+ $repeat['end'] = 'date';
$endbydate_day = substr($rrulearr['UNTIL'], 6, 2);
$endbydate_month = substr($rrulearr['UNTIL'], 4, 2);
$endbydate_year = substr($rrulearr['UNTIL'], 0, 4);
- $endbydate = $endbydate_day . $endbydate_month . $endbydate_year;
+ $repeat['date'] = $endbydate_day . '-' . $endbydate_month . '-' . $endbydate_year;
}else{
- $end = 'never';
+ $repeat['end'] = 'never';
}
if(array_key_exists('weekdays', $repeat)){
$repeat_weekdays_ = array();