aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthe_systech <the_systech@users.sourceforge.net>2002-03-18 19:00:35 +0000
committerthe_systech <the_systech@users.sourceforge.net>2002-03-18 19:00:35 +0000
commit52b98bc9658414a2b88261f4e7aff3c1697bc3a8 (patch)
tree360ffb3b9e2683b6b56307dd85fa9b3b0cc04682
parent4350c9b937090fba7c4b123dec6492bc0fbd6273 (diff)
downloadforums-52b98bc9658414a2b88261f4e7aff3c1697bc3a8.tar
forums-52b98bc9658414a2b88261f4e7aff3c1697bc3a8.tar.gz
forums-52b98bc9658414a2b88261f4e7aff3c1697bc3a8.tar.bz2
forums-52b98bc9658414a2b88261f4e7aff3c1697bc3a8.tar.xz
forums-52b98bc9658414a2b88261f4e7aff3c1697bc3a8.zip
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
-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
+?>