diff options
author | Thomas Bruederli <bruederli@kolabsys.com> | 2015-02-03 22:43:36 +0100 |
---|---|---|
committer | Thomas Bruederli <bruederli@kolabsys.com> | 2015-02-03 22:43:47 +0100 |
commit | be140e827df4d88a6a330479bdde691915ad6a08 (patch) | |
tree | 1aed0fa28c6bc0cd7091309b3c17d874740dcf98 /program | |
parent | 04009e5ccbcfdee7d0f71f40eb402b94563983f9 (diff) |
Don't reset 'plugins' config option when running from update.sh script
Diffstat (limited to 'program')
-rw-r--r-- | 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 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]); } |