aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-08-16 05:13:51 -0700
committerfriendica <info@friendica.com>2012-08-16 05:13:51 -0700
commitd78d6a2e663ad3e71c21c1207411a7bcd704163c (patch)
treefd7242df3dd68070f11b8a3cab776e0b02eff555
parent5c8d854d7d0fb1dbd5454ab41cf9722de2e4ec17 (diff)
downloadvolse-hubzilla-d78d6a2e663ad3e71c21c1207411a7bcd704163c.tar.gz
volse-hubzilla-d78d6a2e663ad3e71c21c1207411a7bcd704163c.tar.bz2
volse-hubzilla-d78d6a2e663ad3e71c21c1207411a7bcd704163c.zip
reversed error logic
-rw-r--r--include/account.php6
1 files 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;
}