From d78d6a2e663ad3e71c21c1207411a7bcd704163c Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 16 Aug 2012 05:13:51 -0700 Subject: reversed error logic --- include/account.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/account.php b/include/account.php index e978e64b0..283a7a8dc 100644 --- a/include/account.php +++ b/include/account.php @@ -97,7 +97,7 @@ function create_account($arr) { } $invite_result = check_account_invite($invite_code); - if(! $invite_result['error']) { + if($invite_result['error']) { $result['message'] = $invite_result['message']; return $result; } @@ -105,14 +105,14 @@ function create_account($arr) { $email_result = check_account_email($email); - if(! $email_result['error']) { + if($email_result['error']) { $result['message'] = $email_result['message']; return $result; } $password_result = check_account_password($password); - if(! $password_result['error']) { + if($password_result['error']) { $result['message'] = $password_result['message']; return $result; } -- cgit v1.2.3