diff --git a/webapp/src/Controller/Jury/RejudgingController.php b/webapp/src/Controller/Jury/RejudgingController.php index da05c10a79..32d7eeef73 100644 --- a/webapp/src/Controller/Jury/RejudgingController.php +++ b/webapp/src/Controller/Jury/RejudgingController.php @@ -126,7 +126,7 @@ public function indexAction(): Response $status = $rejudging->getValid() ? 'applied' : 'canceled'; $sort_order = 2; } elseif ($todo > 0) { - $perc = (int)(100 * ((double)$done / (double)($done + $todo))); + $perc = (int)(100 * ((float)$done / (float)($done + $todo))); $status = sprintf("%d%% done", $perc); $sort_order = 0; } else { diff --git a/webapp/src/Utils/Utils.php b/webapp/src/Utils/Utils.php index 9e07e13944..54f51752f7 100644 --- a/webapp/src/Utils/Utils.php +++ b/webapp/src/Utils/Utils.php @@ -761,9 +761,6 @@ public static function getImageThumb(string $image, int $thumbMaxSize, string $t return false; } - imagedestroy($orig); - imagedestroy($thumb); - return $thumbstr; } @@ -997,8 +994,6 @@ public static function getTextType(string $clientName, string $realPath): ?strin [$type] = explode('; ', finfo_file($finfo, $realPath)); - finfo_close($finfo); - switch ($type) { case 'application/pdf': $textType = 'pdf';