]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix undefined indices - bugfix for oc-99
authorGeorg Ehrke <dev@georgswebsite.de>
Mon, 23 Jan 2012 14:05:53 +0000 (15:05 +0100)
committerGeorg Ehrke <dev@georgswebsite.de>
Mon, 23 Jan 2012 14:05:53 +0000 (15:05 +0100)
apps/calendar/ajax/editeventform.php

index bac4cc517741192e9899cb2947d4e0a19db6da15..9ae3ffa8d9445d7798c193daa854c4dbd6f683b2 100644 (file)
@@ -229,18 +229,20 @@ $tmpl->assign('endtime', $endtime);
 $tmpl->assign('description', $description);
 
 $tmpl->assign('repeat', $repeat['repeat']);
-$tmpl->assign('repeat_month', $repeat['month']);
-$tmpl->assign('repeat_weekdays', $repeat['weekdays']);
-$tmpl->assign('repeat_interval', $repeat['interval']);
-$tmpl->assign('repeat_end', $repeat['end']);
-$tmpl->assign('repeat_count', $repeat['count']);
-$tmpl->assign('repeat_weekofmonth', $repeat['weekofmonth']);
-$tmpl->assign('repeat_date', $repeat['date']);
-$tmpl->assign('repeat_year', $repeat['year']);
-$tmpl->assign('repeat_byyearday', $repeat['byyearday']);
-$tmpl->assign('repeat_bymonthday', $repeat['bymonthday']);
-$tmpl->assign('repeat_bymonth', $repeat['bymonth']);
-$tmpl->assign('repeat_byweekno', $repeat['byweekno']);
+if($repeat['repeat'] != 'doesnotrepeat'){
+       $tmpl->assign('repeat_month', $repeat['month']);
+       $tmpl->assign('repeat_weekdays', $repeat['weekdays']);
+       $tmpl->assign('repeat_interval', $repeat['interval']);
+       $tmpl->assign('repeat_end', $repeat['end']);
+       $tmpl->assign('repeat_count', $repeat['count']);
+       $tmpl->assign('repeat_weekofmonth', $repeat['weekofmonth']);
+       $tmpl->assign('repeat_date', $repeat['date']);
+       $tmpl->assign('repeat_year', $repeat['year']);
+       $tmpl->assign('repeat_byyearday', $repeat['byyearday']);
+       $tmpl->assign('repeat_bymonthday', $repeat['bymonthday']);
+       $tmpl->assign('repeat_bymonth', $repeat['bymonth']);
+       $tmpl->assign('repeat_byweekno', $repeat['byweekno']);
+}
 $tmpl->printpage();
 
 ?>
\ No newline at end of file