Fix contact routes

This commit is contained in:
Philipp Holzer 2019-05-06 18:57:50 +02:00
parent 14d8c12130
commit 53d13f4e4a
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
2 changed files with 17 additions and 3 deletions

View file

@ -367,6 +367,7 @@ class Contact extends BaseModule
return;
}
// @TODO: Replace with parameter from router
$cmd = $a->argv[2];
$orig_record = DBA::selectFirst('contact', [], ['id' => $contact_id, 'uid' => [0, local_user()], 'self' => false, 'deleted' => false]);
@ -667,6 +668,7 @@ class Contact extends BaseModule
$archived = false;
$all = false;
// @TODO: Replace with parameter from router
if (($a->argc == 2) && ($a->argv[1] === 'all')) {
$sql_extra = '';
$all = true;