Fix for typo that wouldn't allow user registration line 487 should have checked for query to *NOT* be successful :D... But hey it was a Paul soooo... :D

git-svn-id: file:///svn/phpbb/trunk@2321 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
the_systech 2002-03-18 19:00:35 +00:00
parent 4350c9b937
commit 52b98bc965

View file

@ -484,7 +484,7 @@ if ( isset($HTTP_POST_VARS['submit']) )
$sql = "SELECT MAX(group_id) AS total $sql = "SELECT MAX(group_id) AS total
FROM " . GROUPS_TABLE; 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); 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); include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?> ?>