From ec61237c0373f663535dc85cf1c4b94782de7a23 Mon Sep 17 00:00:00 2001 From: camer0n Date: Wed, 29 Jan 2025 12:34:15 -0800 Subject: [PATCH] Fixes #5417 - Contact info fields. --- e107_admin/prefs.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/e107_admin/prefs.php b/e107_admin/prefs.php index f94609d0b..fc0c97031 100644 --- a/e107_admin/prefs.php +++ b/e107_admin/prefs.php @@ -110,6 +110,10 @@ if(isset($_POST['updateprefs'])) $pref['post_html'] = intval($_POST['post_html']); // This ensures the setting is reflected in set text + if(isset($_POST['contact_info']) && is_array($_POST['contact_info'])) + { + $core_pref->set('contact_info', []); // reset to type array if string had been used in the past. + } $smtp_opts = array();