summaryrefslogtreecommitdiff
path: root/auth
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2007-06-30 02:34:53 +0000
committerChristian Fowler <spider@viovio.com>2007-06-30 02:34:53 +0000
commit9c2423119038df9c317899a4477b51f8d442413f (patch)
treed4c87f8edf0b022cd4ead0a844ac11b44f1169f5 /auth
parent90c777f28a150c3f14c7adece2210d0a2682b2c3 (diff)
downloadusers-9c2423119038df9c317899a4477b51f8d442413f.tar.gz
users-9c2423119038df9c317899a4477b51f8d442413f.tar.bz2
users-9c2423119038df9c317899a4477b51f8d442413f.zip
fix negative condition to assign errors if failure
Diffstat (limited to 'auth')
-rw-r--r--auth/bit/auth.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/auth/bit/auth.php b/auth/bit/auth.php
index ef68593..e100fa3 100644
--- a/auth/bit/auth.php
+++ b/auth/bit/auth.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_users/auth/bit/auth.php,v 1.5 2007/01/06 09:46:27 squareing Exp $
+ * $Header: /cvsroot/bitweaver/_bit_users/auth/bit/auth.php,v 1.6 2007/06/30 02:34:53 spiderr Exp $
*
* @package users
*/
@@ -99,7 +99,8 @@ class BitAuth extends BaseAuth {
function createUser( &$pUserHash ) {
//$authUserInfo = array( 'login' => $instance->mInfo['login'], 'password' => $instance->mInfo['password'], 'real_name' => $instance->mInfo['real_name'], 'email' => $instance->mInfo['email'] );
$u = new BitPermUser();
- if( $u->store( $pUserHash ) ) {
+
+ if( !$u->store( $pUserHash ) ) {
$this->mErrors = array_merge($this->mErrors,$u->mErrors);
}
return $u->mUserId;