From 50f18d24a303befaf5089989088f3df6c60f4834 Mon Sep 17 00:00:00 2001 From: "Willy \"Linty" Date: Wed, 13 Dec 2023 12:38:46 +0100 Subject: [PATCH] Make sure new parameter are added to configuration --- maintain.class.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/maintain.class.php b/maintain.class.php index e7db13b..b3acfab 100644 --- a/maintain.class.php +++ b/maintain.class.php @@ -51,6 +51,13 @@ function install($plugin_version, &$errors=array()) else { $new_conf = is_string($conf['Fotorama']) ? unserialize($conf['Fotorama']) : $conf['Fotorama']; + foreach ($this->default_conf as $conf_key => $conf_value) + { + if (!isset($new_conf[$conf_key])) + { + $new_conf[$conf_key] = $conf_value; + } + } $conf['Fotorama'] = serialize($new_conf); conf_update_param('Fotorama', $conf['Fotorama']);