Skip to content

Commit

Permalink
typecast int & correction
Browse files Browse the repository at this point in the history
  • Loading branch information
eeemarv committed May 29, 2019
1 parent 92933c2 commit 95c7ce9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/posting.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function get_template_vars(int $forum_id, array $topic_data):array
'maxDuration' => $this->store->get_max_duration_days(),
'dateFormat' => $this->store->get_date_format(),
'firstDay' => $this->store->get_first_day(),
'refTime' => (int) $topic_data['topic_time'] ?? time(),
'refTime' => isset($topic_data['topic_time']) ? (int) $topic_data['topic_time'] : time(),
];

$start_date = $start_jd ? $this->jd_to_atom_date($start_jd) : '';
Expand Down

0 comments on commit 95c7ce9

Please sign in to comment.