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
父節點 6cb26f884e
當前提交 f806fa91b1
沒有發現已知的金鑰在資料庫的簽署中
GPG Key ID: B72F8185C6C7BD78
共有 3 個文件被更改,包括 2 次插入3 次删除

查看文件

@ -148,7 +148,7 @@ function message_content(App $a)
$cmd = $a->argv[1];
if ($cmd === 'drop') {
if (dba::delete('mail', ['id' => $a->argv[2], 'uid' => local_user()])) {
if (dba::delete('mail', ['id' => $a->argv[2]])) {
info(L10n::t('Message deleted.') . EOL);
}
//goaway(System::baseUrl(true) . '/message' );

查看文件

@ -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;
}

查看文件

@ -2080,7 +2080,6 @@ class DFRN
'confirm' => $relocate["confirm"], 'notify' => $relocate["notify"],
'poll' => $relocate["poll"], 'site-pubkey' => $relocate["sitepubkey"]];
$condition = ["(`id` = ?) OR (`nurl` = ?)", $importer["id"], normalise_link($old["url"])];
dba::update('contact', $fields, $condition);
// @TODO No dba:update here?
dba::update('contact', $fields, $condition);