Replace old database queries with the new ones

This commit is contained in:
Michael
2018-05-02 19:26:15 +00:00
committed by Roland Häder
parent 8bc565be74
commit d54c79a772
3 changed files with 2 additions and 8 deletions

View File

@@ -149,7 +149,7 @@ function settings_post(App $a)
check_form_security_token_redirectOnErr('/settings/oauth', 'settings_oauth');
$key = $_POST['remove'];
dba::delete('tokens', ['id' => $key, 'uid' => local_user()]);
dba::delete('tokens', ['id' => $key]);
goaway(System::baseUrl(true)."/settings/oauth/");
return;
}