From c09bdb6c5535e7a7164acbe04e152ce415bfce9e Mon Sep 17 00:00:00 2001 From: Igor Wiedler Date: Fri, 24 Sep 2010 18:53:33 +0200 Subject: [PATCH] [feature/request-class] Remove tricky $_* is_array from acp_profile PHPBB3-9716 --- phpBB/includes/acp/acp_profile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/includes/acp/acp_profile.php b/phpBB/includes/acp/acp_profile.php index 776a59c8c7..b66737ce03 100644 --- a/phpBB/includes/acp/acp_profile.php +++ b/phpBB/includes/acp/acp_profile.php @@ -691,7 +691,7 @@ class acp_profile } else { - $_new_key_ary[$key] = ($request->is_array($key)) ? utf8_normalize_nfc(request_var($key, array(''), true)) : utf8_normalize_nfc(request_var($key, '', true)); + $_new_key_ary[$key] = ($field_type == FIELD_BOOL && $key == 'lang_options') ? utf8_normalize_nfc(request_var($key, array(''), true)) : utf8_normalize_nfc(request_var($key, '', true)); } } }