From 52b98bc9658414a2b88261f4e7aff3c1697bc3a8 Mon Sep 17 00:00:00 2001 From: the_systech Date: Mon, 18 Mar 2002 19:00:35 +0000 Subject: [PATCH] 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 --- phpBB/includes/usercp_register.php | 4 ++-- 1 file 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 +?>