mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-11 19:24:01 +02:00
Merge pull request #6083 from rxu/ticket/16582
[ticket/16582] Fix SQL error on registration with Numbers CPF with no default value set
This commit is contained in:
@@ -259,7 +259,10 @@ class manager
|
||||
* Replace Emoji and other 4bit UTF-8 chars not allowed by MySQL
|
||||
* with their Numeric Character Reference's Hexadecimal notation.
|
||||
*/
|
||||
$cp_data['pf_' . $row['field_ident']] = utf8_encode_ucr($cp_data['pf_' . $row['field_ident']]);
|
||||
if (is_string($cp_data['pf_' . $row['field_ident']]))
|
||||
{
|
||||
$cp_data['pf_' . $row['field_ident']] = utf8_encode_ucr($cp_data['pf_' . $row['field_ident']]);
|
||||
}
|
||||
|
||||
$check_value = $cp_data['pf_' . $row['field_ident']];
|
||||
|
||||
|
Reference in New Issue
Block a user