From 2aff356948073a4987679d05c60e5876c0f3f4fc Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 10 Aug 2022 09:18:15 -0400 Subject: [PATCH] Fix deprecation warning due to implicit conversion to integer. Make it explicit. --- web/ajax/watch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/ajax/watch.php b/web/ajax/watch.php index 0642d4bfa..9229c99ac 100644 --- a/web/ajax/watch.php +++ b/web/ajax/watch.php @@ -65,7 +65,7 @@ foreach ( $rows as $row ) { $row['imgHtml'] = 'Event '.$event->Id().''; $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