From be140e827df4d88a6a330479bdde691915ad6a08 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Tue, 3 Feb 2015 22:43:36 +0100 Subject: Don't reset 'plugins' config option when running from update.sh script --- program/include/rcmail_install.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'program') diff --git a/program/include/rcmail_install.php b/program/include/rcmail_install.php index 2ba90693f..0d5fbc5da 100644 --- a/program/include/rcmail_install.php +++ b/program/include/rcmail_install.php @@ -234,10 +234,9 @@ class rcmail_install 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]); } -- cgit v1.2.3