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;