mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-19 08:01:27 +02:00
[ticket/13542] Merge result of validation into existing $error
Because extensions can set a entry in $error, the result of the validate needs to be merged into it. PHPBB3-13542
This commit is contained in:
@@ -85,11 +85,11 @@ class ucp_prefs
|
||||
$data['user_style'] = (int) $user->data['user_style'];
|
||||
}
|
||||
|
||||
$error = validate_data($data, array(
|
||||
$error = array_merge(validate_data($data, array(
|
||||
'dateformat' => array('string', false, 1, 30),
|
||||
'lang' => array('language_iso_name'),
|
||||
'tz' => array('timezone'),
|
||||
));
|
||||
)), $error);
|
||||
|
||||
if (!check_form_key('ucp_prefs_personal'))
|
||||
{
|
||||
|
Reference in New Issue
Block a user