Skip to content

Commit

Permalink
Merge pull request #24 from ringwoodwood/patch-2
Browse files Browse the repository at this point in the history
Correcting wrong variable
  • Loading branch information
maddhatter committed Sep 28, 2015
2 parents 838ef99 + 4f19326 commit 2bf4983
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MaddHatter/LaravelFullcalendar/SimpleEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function __construct($title, $isAllDay, $start, $end, $id = null)
$this->title = $title;
$this->isAllDay = $isAllDay;
$this->start = $start instanceof DateTime ? $start : new DateTime($start);
$this->end = $start instanceof DateTime ? $end : new DateTime($end);
$this->end = $end instanceof DateTime ? $end : new DateTime($end);
$this->id = $id;
}

Expand Down Expand Up @@ -102,4 +102,4 @@ public function getEnd()
{
return $this->end;
}
}
}

0 comments on commit 2bf4983

Please sign in to comment.