mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/13650] Validate ucp profile data changes
PHPBB3-13650
This commit is contained in:
parent
525a62f72e
commit
03ded5853b
1 changed files with 13 additions and 1 deletions
|
@ -114,6 +114,18 @@ class ucp_profile
|
||||||
$error[] = 'FORM_INVALID';
|
$error[] = 'FORM_INVALID';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Validate user data on editing profile in UCP
|
||||||
|
*
|
||||||
|
* @event core.ucp_profile_info_validate_data
|
||||||
|
* @var array data Array with user profile data
|
||||||
|
* @var bool submit Flag indicating if submit button has been pressed
|
||||||
|
* @var array error Array of any generated errors
|
||||||
|
* @since 3.1.4-RC1
|
||||||
|
*/
|
||||||
|
$vars = array('data', 'submit', 'error');
|
||||||
|
extract($phpbb_dispatcher->trigger_event('core.ucp_profile_info_validate_data', compact($vars)));
|
||||||
|
|
||||||
if (!sizeof($error))
|
if (!sizeof($error))
|
||||||
{
|
{
|
||||||
$sql_ary = array(
|
$sql_ary = array(
|
||||||
|
|
Loading…
Add table
Reference in a new issue