From 9c341ecd2a5bb9a51ab31a47d4d154349f71b1e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Auswo=CC=88ger?= Date: Tue, 9 Apr 2024 08:49:41 +0200 Subject: [PATCH] Fix #87 bug with a non-numeric value encountered --- src/Module/Slider.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Module/Slider.php b/src/Module/Slider.php index d085569..b3578df 100644 --- a/src/Module/Slider.php +++ b/src/Module/Slider.php @@ -323,7 +323,7 @@ protected function compile() 'thumbs_visibleAreaMax', ) as $key) { if (! empty($this->arrData['rsts_' . $key]) && $this->arrData['rsts_' . $key] > 0) { - $options[$key] = $this->arrData['rsts_' . $key] * 1; + $options[$key] = (float) $this->arrData['rsts_' . $key]; } } @@ -365,7 +365,7 @@ protected function compile() $options[$key] = $this->arrData['rsts_' . $key]; } else { - $options[$key] = $this->arrData['rsts_' . $key] * 1; + $options[$key] = (float) $this->arrData['rsts_' . $key]; } } }