Fix deprecation warning due to implicit conversion to integer. Make it explicit.

pull/3609/head
Isaac Connor 2022-08-10 09:18:15 -04:00 committed by Isaac Connor
parent 69ae16ffd7
commit 2aff356948
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ foreach ( $rows as $row ) {
$row['imgHtml'] = '<img id="thumbnail' .$event->Id(). '" src="' .$imgSrc. '" alt="Event '.$event->Id().'" width="' .validInt($event->ThumbnailWidth()). '" height="' .validInt($event->ThumbnailHeight()).'" stream_src="' .$streamSrc. '" still_src="' .$imgSrc. '" loading="lazy" />';
$row['Name'] = validHtmlStr($row['Name']);
$row['StartDateTime'] = $dateTimeFormatter->format(strtotime($row['StartDateTime']));
$row['Length'] = gmdate('H:i:s', $row['Length'] );
$row['Length'] = gmdate('H:i:s', intval($row['Length']));
$returned_rows[] = $row;
} # end foreach row matching search