From 78f1f6f8c7ab839a24ff5095b989aab9e4ca79aa Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Fri, 29 Oct 2021 20:08:35 +0200 Subject: [PATCH] fix settings update (thanks Gvx) closes #3 --- inc/class.improve.action.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/class.improve.action.php b/inc/class.improve.action.php index e9a1a3f..7cf65b8 100644 --- a/inc/class.improve.action.php +++ b/inc/class.improve.action.php @@ -163,7 +163,7 @@ abstract class ImproveAction */ final protected function setSettings($settings, $value = null) { - $settings = is_array($settings) ? $settings : [$setting => $value]; + $settings = is_array($settings) ? $settings : [$settings => $value]; foreach($settings as $k => $v) { $this->settings[$k] = $v; }