From 0f596dce8bafad0db676e60c85741dc1065c1839 Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Wed, 15 Feb 2023 08:33:49 +0100 Subject: [PATCH] fix api parameter issue when empty values are passed Signed-off-by: Michael Kaufmann --- lib/Froxlor/Api/Api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Froxlor/Api/Api.php b/lib/Froxlor/Api/Api.php index 7cde0c2c..f32d73a6 100644 --- a/lib/Froxlor/Api/Api.php +++ b/lib/Froxlor/Api/Api.php @@ -117,6 +117,6 @@ class Api private function stripcslashesDeep($value) { - return is_array($value) ? array_map([$this, 'stripcslashesDeep'], $value) : (!empty($value) ? stripcslashes($value) : null); + return is_array($value) ? array_map([$this, 'stripcslashesDeep'], $value) : (!empty($value) ? stripcslashes($value) : $value); } }