From 8839f0dd1a4f9fed05eb97d28e756c6080d00ab9 Mon Sep 17 00:00:00 2001 From: Shea Dawson Date: Tue, 22 Jul 2014 13:05:27 +1000 Subject: [PATCH] Fix - $cal not defined error ... if $_REQUEST['date'] is not set --- code/CalendarEvent.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/CalendarEvent.php b/code/CalendarEvent.php index c1b0fe6..bc144ac 100755 --- a/code/CalendarEvent.php +++ b/code/CalendarEvent.php @@ -169,8 +169,9 @@ public function OtherDates() { } elseif(strtotime($_REQUEST['date']) > 0) { $date = date('Y-m-d', strtotime($_REQUEST['date'])); - $cal = $this->Parent(); } + + $cal = $this->Parent(); if($this->Recursion == 1) { $datetime_obj = DataList::create($this->data()->getDateTimeClass())