mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/13209] Fix expected request value of CPF language fields.
Multiple languages can be edited, thus the expected value is an array. PHPBB3-13209
This commit is contained in:
parent
101945acf9
commit
3108d0b060
1 changed files with 13 additions and 1 deletions
|
@ -158,7 +158,19 @@ abstract class type_base implements type_interface
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return $this->request->variable($key, '', true);
|
$default_value = '';
|
||||||
|
$lang_fields = array(
|
||||||
|
'l_lang_name',
|
||||||
|
'l_lang_explain',
|
||||||
|
'l_lang_default_value',
|
||||||
|
'l_lang_options',
|
||||||
|
);
|
||||||
|
|
||||||
|
if (in_array($key, $lang_fields))
|
||||||
|
{
|
||||||
|
$default_value = array(0 => '');
|
||||||
|
}
|
||||||
|
return $this->request->variable($key, $default_value, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue