]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix end for repeating events
authorGeorg Ehrke <dev@georgswebsite.de>
Thu, 5 Jan 2012 16:05:30 +0000 (17:05 +0100)
committerGeorg Ehrke <dev@georgswebsite.de>
Thu, 5 Jan 2012 16:05:30 +0000 (17:05 +0100)
apps/calendar/ajax/editeventform.php

index 4783fcca89722b42722e5f4caba4bdc41b3b33dd..f605f33edbbb0938e50319292841d40ff290fbbc 100644 (file)
@@ -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();