From 64891c9f9c7f2009c2106af6190229798498044b Mon Sep 17 00:00:00 2001 From: Josaphat Imani Date: Wed, 10 Aug 2022 15:40:17 +0100 Subject: [PATCH] Fix emptying text setting values --- lib/module.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/module.php b/lib/module.php index 0426fc112f..2cb315e37e 100644 --- a/lib/module.php +++ b/lib/module.php @@ -394,7 +394,7 @@ public function process_key() { private function check_field($val) { switch (true) { case is_array($val): - case trim((string) $val) !== '': + case is_string($val): case $val === '0': case $val === 0: return $val;