fix the admin interface to pending registrations

This commit is contained in:
friendica
2014-01-21 14:56:42 -08:00
parent 530adb50ee
commit 60416d6f33
3 changed files with 5 additions and 6 deletions

View File

@@ -383,11 +383,11 @@ function user_deny($hash) {
if(! count($register))
return false;
$user = q("SELECT account_id FROM account WHERE account_id = %d LIMIT 1",
$account = q("SELECT account_id FROM account WHERE account_id = %d LIMIT 1",
intval($register[0]['uid'])
);
if(! $user)
if(! $account)
return false;
$r = q("DELETE FROM account WHERE account_id = %d LIMIT 1",