Skip to content

Commit

Permalink
Merge pull request #57 from sheadawson/patch-1
Browse files Browse the repository at this point in the history
Fix - $cal not defined error
  • Loading branch information
unclecheese committed Jul 22, 2014
2 parents a140d2e + 8839f0d commit c5a6896
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/CalendarEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit c5a6896

Please sign in to comment.