From 921fbbfaa2f46ec5a1578b20416f2ac375d2b4b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Witold=20Wis=CC=81niewski?= Date: Fri, 25 Oct 2024 11:31:32 +0200 Subject: [PATCH] Fix --- app/Helpers/TrimHelper.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Helpers/TrimHelper.php b/app/Helpers/TrimHelper.php index 6dc4ecfe..a49cc6cd 100644 --- a/app/Helpers/TrimHelper.php +++ b/app/Helpers/TrimHelper.php @@ -16,14 +16,14 @@ public static function trim(string $value, ?string $charlist = null): string } /** - * @param array $array + * @param array $array * - * @return array + * @return array */ public static function trimArrayValues(array $array, ?string $charlist = null): array { foreach ($array as $key => $value) { - $array[$key] = self::trim($value, $charlist); + $array[$key] = $value ? self::trim($value, $charlist) : $value; } return $array;