diff options
author | Henry Sudhof <kellanved@phpbb.com> | 2007-06-08 13:46:56 +0000 |
---|---|---|
committer | Henry Sudhof <kellanved@phpbb.com> | 2007-06-08 13:46:56 +0000 |
commit | fb89a2d85ed7ace54999df2b2a5dab9d9510911b (patch) | |
tree | 4d3e6365848515824be2a795cbe8a5410465162c | |
parent | 151f230cfd63a591a0828f6a7e12efd6bb7b74b6 (diff) | |
download | forums-fb89a2d85ed7ace54999df2b2a5dab9d9510911b.tar forums-fb89a2d85ed7ace54999df2b2a5dab9d9510911b.tar.gz forums-fb89a2d85ed7ace54999df2b2a5dab9d9510911b.tar.bz2 forums-fb89a2d85ed7ace54999df2b2a5dab9d9510911b.tar.xz forums-fb89a2d85ed7ace54999df2b2a5dab9d9510911b.zip |
Let's try this again :|
git-svn-id: file:///svn/phpbb/trunk@7729 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r-- | phpBB/includes/acp/acp_profile.php | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/phpBB/includes/acp/acp_profile.php b/phpBB/includes/acp/acp_profile.php index dbece81e09..ccd3dbf40d 100644 --- a/phpBB/includes/acp/acp_profile.php +++ b/phpBB/includes/acp/acp_profile.php @@ -620,13 +620,22 @@ class acp_profile foreach ($key_ary as $key) { - if (!isset($_REQUEST[$key])) + if ($field_type == FIELD_TEXT && $key == 'field_length' && isset($_REQUEST['rows'])) { - $var = false; + $cp->vars['rows'] = request_var('rows', 0); + $cp->vars['columns'] = request_var('columns', 0); + $_new_key_ary[$key] = $cp->vars['rows'] . '|' . $cp->vars['columns']; } else { - $_new_key_ary[$key] = (is_array($_REQUEST[$key])) ? request_var($key, array(''), true) : request_var($key, '', true); + if (!isset($_REQUEST[$key])) + { + $var = false; + } + else + { + $_new_key_ary[$key] = (is_array($_REQUEST[$key])) ? request_var($key, array(''), true) : request_var($key, '', true); + } } } @@ -897,7 +906,7 @@ class acp_profile foreach ($options as $field => $field_type) { $value = ($action == 'create') ? request_var('l_' . $field, array(0 => ''), true) : $cp->vars['l_' . $field]; - + if ($field == 'lang_options') { $var = ($action == 'create' || !is_array($cp->vars['l_lang_options'][$lang_id])) ? $cp->vars['lang_options'] : $cp->vars['lang_options'][$lang_id]; |