mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
Merge pull request #6051 from rxu/ticket/16605
[ticket/16605] Fix possible SQL error on user registration
This commit is contained in:
commit
c8351d6d20
1 changed files with 1 additions and 1 deletions
|
@ -424,7 +424,7 @@ class ucp_register
|
||||||
$user_id = user_add($user_row, $cp_data);
|
$user_id = user_add($user_row, $cp_data);
|
||||||
|
|
||||||
// This should not happen, because the required variables are listed above...
|
// This should not happen, because the required variables are listed above...
|
||||||
if ($user_id === false)
|
if ((bool) $user_id === false)
|
||||||
{
|
{
|
||||||
trigger_error('NO_USER', E_USER_ERROR);
|
trigger_error('NO_USER', E_USER_ERROR);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue