aboutsummaryrefslogtreecommitdiffstats
path: root/include/account.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-02-08 03:51:31 -0800
committerfriendica <info@friendica.com>2013-02-08 03:51:31 -0800
commit62afdf38202ee9f09011bef599506e3a5ee37528 (patch)
treed13030c2401df0190083deeff9757ae2d56f54ac /include/account.php
parent07e0ffd7c77f3e015feb3a109012b10db5275a0a (diff)
downloadvolse-hubzilla-62afdf38202ee9f09011bef599506e3a5ee37528.tar.gz
volse-hubzilla-62afdf38202ee9f09011bef599506e3a5ee37528.tar.bz2
volse-hubzilla-62afdf38202ee9f09011bef599506e3a5ee37528.zip
more register_approve stuff - like the admin page. Hopefully this won't conflict with Thomas's admin page "list users" changes
Diffstat (limited to 'include/account.php')
-rw-r--r--include/account.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/account.php b/include/account.php
index 530ffd083..f89197e0c 100644
--- a/include/account.php
+++ b/include/account.php
@@ -317,6 +317,11 @@ function user_allow($hash) {
intval(ACCOUNT_BLOCKED),
intval($register[0]['uid'])
);
+ $r = q("update account set account_flags = (account_flags ^ %d) where (account_flags & %d) and account_id = %d limit 1",
+ intval(ACCOUNT_PENDING),
+ intval(ACCOUNT_PENDING),
+ intval($register[0]['uid'])
+ );
$r = q("SELECT uid FROM profile WHERE uid = %d AND is_default = 1",
intval($account[0]['account_id'])