fix setting account_roles for admin account

This commit is contained in:
friendica 2013-05-15 22:59:05 -07:00
parent d20a0cb6ab
commit 20d5985c0a

View File

@ -130,7 +130,7 @@ function create_account($arr) {
// allow the admin_email account to be admin, but only if it's the first account. // allow the admin_email account to be admin, but only if it's the first account.
$c = account_total(); $c = account_total();
if((c === 0) && (check_account_admin($arr))) if(($c === 0) && (check_account_admin($arr)))
$roles |= ACCOUNT_ROLE_ADMIN; $roles |= ACCOUNT_ROLE_ADMIN;