From 4f193267652d6a7f35f22770c260387d35757878 Mon Sep 17 00:00:00 2001 From: ringwoodwood Date: Mon, 28 Sep 2015 13:02:03 +0100 Subject: [PATCH] SimpleEvent.php Correcting wrong variable --- src/MaddHatter/LaravelFullcalendar/SimpleEvent.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MaddHatter/LaravelFullcalendar/SimpleEvent.php b/src/MaddHatter/LaravelFullcalendar/SimpleEvent.php index 39e0b4e..3d9af95 100644 --- a/src/MaddHatter/LaravelFullcalendar/SimpleEvent.php +++ b/src/MaddHatter/LaravelFullcalendar/SimpleEvent.php @@ -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; } @@ -102,4 +102,4 @@ public function getEnd() { return $this->end; } -} \ No newline at end of file +}