From b4baf752810893d826551037d0fb9197e760c292 Mon Sep 17 00:00:00 2001 From: Michael Vasseur <14887731+vmcj@users.noreply.github.com> Date: Tue, 19 Sep 2023 18:10:50 +0200 Subject: [PATCH] Fix wrong variable which was not renamed --- webapp/src/Twig/TwigExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/src/Twig/TwigExtension.php b/webapp/src/Twig/TwigExtension.php index 1abbb9f6fa3..eeda610b61a 100644 --- a/webapp/src/Twig/TwigExtension.php +++ b/webapp/src/Twig/TwigExtension.php @@ -165,7 +165,7 @@ public function printtimediff(float $start, ?float $end = null): string public function printelapsedminutes(float $start, float $end): string { $minutesElapsed = floor(($end - $start)/60); - if ($minutesRemaining < 1) { + if ($minutesElapsed < 1) { return 'started less than 1 minute ago'; } elseif ($minutesElapsed == 1) { return 'started 1 minute ago';