Continued a bit:
- removed/fixed whitespaces and mixture of spaces/tabs (some) - added new-line character at end of files (POSIX-compilant) - reverted some code which I had messed up (compared to upstream/develop) - removed duplicate dba::update() invocation in src/Protocol/DFRN.php - also removed no longer valid TODO Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
parent
f806fa91b1
commit
8ad523fbc8
9 changed files with 24 additions and 22 deletions
|
@ -141,6 +141,7 @@ function message_content(App $a)
|
|||
'$cancel' => L10n::t('Cancel'),
|
||||
]);
|
||||
}
|
||||
|
||||
// Now check how the user responded to the confirmation query
|
||||
if ($_REQUEST['canceled']) {
|
||||
goaway($_SESSION['return_url']);
|
||||
|
@ -148,9 +149,10 @@ function message_content(App $a)
|
|||
|
||||
$cmd = $a->argv[1];
|
||||
if ($cmd === 'drop') {
|
||||
if (dba::delete('mail', ['id' => $a->argv[2]])) {
|
||||
if (dba::delete('mail', ['id' => $a->argv[2], 'uid' => local_user()])) {
|
||||
info(L10n::t('Message deleted.') . EOL);
|
||||
}
|
||||
|
||||
//goaway(System::baseUrl(true) . '/message' );
|
||||
goaway($_SESSION['return_url']);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue