mirror of
https://github.com/friendica/friendica
synced 2025-05-05 21:44:11 +02:00
Merge remote-tracking branch 'upstream/2018.08-rc' into ap1
This commit is contained in:
commit
e45206ae5d
17 changed files with 81 additions and 58 deletions
|
@ -13,8 +13,8 @@ require_once 'include/dba.php';
|
|||
class RemoveContact {
|
||||
public static function execute($id) {
|
||||
|
||||
// Only delete if the contact is archived
|
||||
$condition = ['archive' => true, 'network' => Protocol::PHANTOM, 'id' => $id];
|
||||
// Only delete if the contact is to be deleted
|
||||
$condition = ['network' => Protocol::PHANTOM, 'id' => $id];
|
||||
$r = DBA::exists('contact', $condition);
|
||||
if (!DBA::isResult($r)) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue