From ac88471e5599bd1217edc47ccb7d208c044c0e11 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 29 Jan 2017 14:00:44 +0000 Subject: [PATCH] Make the code nicer --- include/Contact.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/Contact.php b/include/Contact.php index 362bce1bac..32ee0ab95c 100644 --- a/include/Contact.php +++ b/include/Contact.php @@ -64,12 +64,12 @@ function contact_remove($id) { $r = q("SELECT `uid` FROM `contact` WHERE `id` = %d AND NOT `self` LIMIT 1", intval($id) ); - if((! dbm::is_result($r)) || (! intval($r[0]['uid']))) { + if (!dbm::is_result($r) || !intval($r[0]['uid'])) { return; } $archive = get_pconfig($r[0]['uid'], 'system','archive_removed_contacts'); - if($archive) { + if ($archive) { q("update contact set `archive` = 1, `network` = 'none', `writable` = 0 where id = %d", intval($id) );