mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/11578] Add missing underscore after 'validate' function prefix
The underscore after the 'validate' function prefix for the older functions was dropped by accident in PR #1407. This patch will add it back. PHPBB3-11578
This commit is contained in:
parent
cc68ea5f6f
commit
b75f67231f
1 changed files with 1 additions and 1 deletions
|
@ -1247,7 +1247,7 @@ function validate_data($data, $val_ary)
|
||||||
{
|
{
|
||||||
$function = array_shift($validate);
|
$function = array_shift($validate);
|
||||||
array_unshift($validate, $data[$var]);
|
array_unshift($validate, $data[$var]);
|
||||||
$function_prefix = (function_exists('phpbb_validate_' . $function)) ? 'phpbb_validate_' : 'validate';
|
$function_prefix = (function_exists('phpbb_validate_' . $function)) ? 'phpbb_validate_' : 'validate_';
|
||||||
|
|
||||||
if ($result = call_user_func_array($function_prefix . $function, $validate))
|
if ($result = call_user_func_array($function_prefix . $function, $validate))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue