$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' );
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;
}
'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);
logger('Contacts are updated.');
- /// @TODO WHERE DOES $x COME FROM ???
- if ($x === false) {
- return false;
- }
-
// update items
// This is an extreme performance killer
Item::update(['owner-link' => $relocate["url"]], ['owner-link' => $old["url"], 'uid' => $importer["importer_uid"]]);