[ticket/690] Update test for phpBB 3.2.0 and PHP 7.1 compatibility

B3P-690
This commit is contained in:
Marc Alexander
2017-01-08 22:09:21 +01:00
parent 2b6c85e2cf
commit 7f36382cc6
8 changed files with 91 additions and 34 deletions

View File

@@ -281,6 +281,9 @@ class calendar extends module_base
foreach ($events as $key => $cur_event)
{
$cur_event['start_time'] = (int) $cur_event['start_time'];
$cur_event['end_time'] = (int) $cur_event['end_time'];
if (($cur_event['start_time'] + $this->time->getOffset()) >= $today_timestamp ||
($cur_event['end_time'] + $this->time->getOffset()) >= $today_timestamp ||
(($cur_event['start_time'] + $this->time->getOffset() + self::TIME_DAY) >= $today_timestamp && $cur_event['all_day']))