aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/usercp_register.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/usercp_register.php')
-rw-r--r--phpBB/includes/usercp_register.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/usercp_register.php b/phpBB/includes/usercp_register.php
index 0bbf9f7eef..3cc356ea97 100644
--- a/phpBB/includes/usercp_register.php
+++ b/phpBB/includes/usercp_register.php
@@ -484,7 +484,7 @@ if ( isset($HTTP_POST_VARS['submit']) )
$sql = "SELECT MAX(group_id) AS total
FROM " . GROUPS_TABLE;
- if ( $result = $db->sql_query($sql) )
+ if (!( $result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtained next user_id information', '', __LINE__, __FILE__, $sql);
}
@@ -966,4 +966,4 @@ $template->pparse('body');
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
-?> \ No newline at end of file
+?>