Skip to content

Commit

Permalink
Fixing the fix for the fix for multiple instances of the same list in…
Browse files Browse the repository at this point in the history
… fullcalendar
  • Loading branch information
cheesegrits committed Apr 5, 2018
1 parent c97432b commit a0c56ca
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ public function getEvents($listid = '', $eventListKey = '')

foreach ($record as $key => $data)
{
if (!empty($eventListKey) && $key != $eventListKey)
if ($eventListKey !== '' && (int)$key !== (int)$eventListKey)
{
continue;
}
Expand Down Expand Up @@ -547,7 +547,6 @@ public function getEvents($listid = '', $eventListKey = '')
}

$date = JFactory::getDate($row->enddate);

// Full Calendar allDay end date is now exclusive, need to add a day
if ($row->allday)
{
Expand Down

0 comments on commit a0c56ca

Please sign in to comment.