From 6428747c77997536fb1ebaf603cf6d8638b08fa5 Mon Sep 17 00:00:00 2001 From: bergware Date: Mon, 5 Feb 2024 10:30:14 +0100 Subject: [PATCH] parity_history: code optimization --- emhttp/plugins/dynamix/scripts/parity_history | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/emhttp/plugins/dynamix/scripts/parity_history b/emhttp/plugins/dynamix/scripts/parity_history index a793711b8..b299009b0 100755 --- a/emhttp/plugins/dynamix/scripts/parity_history +++ b/emhttp/plugins/dynamix/scripts/parity_history @@ -63,7 +63,6 @@ if (file_exists($log)) { } fclose($handle); } -if (!$list) $list[] = ""._('No parity check history present')."!"; -echo implode($list); +echo $list ? implode($list) : ""._('No parity check history present')."!"; ?>