From be140e827df4d88a6a330479bdde691915ad6a08 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli <bruederli@kolabsys.com> Date: Tue, 03 Feb 2015 16:43:47 -0500 Subject: [PATCH] Don't reset 'plugins' config option when running from update.sh script --- program/include/rcmail_install.php | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/program/include/rcmail_install.php b/program/include/rcmail_install.php index 2ba9069..0d5fbc5 100644 --- a/program/include/rcmail_install.php +++ b/program/include/rcmail_install.php @@ -234,10 +234,9 @@ else if (is_numeric($value)) { $value = intval($value); } - else if ($prop == 'plugins') { + else if ($prop == 'plugins' && !empty($_POST['submit'])) { $value = array(); - foreach(array_keys($_POST) as $key) - { + foreach (array_keys($_POST) as $key) { if (preg_match('/^_plugins_*/', $key)) array_push($value, $_POST[$key]); } -- Gitblit v1.9.1