aboutsummaryrefslogtreecommitdiffstats
path: root/include/Contact.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-08-15 17:43:19 -0700
committerfriendica <info@friendica.com>2013-08-15 17:43:19 -0700
commit764e0201ce8259c84a3b6ce643a52effe9dc8a59 (patch)
tree7be4dbbba28d8858d2ab2cdb7073df256704a445 /include/Contact.php
parentd46436dc9c115d29a18a29203bd12d3246472365 (diff)
downloadvolse-hubzilla-764e0201ce8259c84a3b6ce643a52effe9dc8a59.tar.gz
volse-hubzilla-764e0201ce8259c84a3b6ce643a52effe9dc8a59.tar.bz2
volse-hubzilla-764e0201ce8259c84a3b6ce643a52effe9dc8a59.zip
don't include archived contacts in public posts, unless specifically requested
Diffstat (limited to 'include/Contact.php')
-rw-r--r--include/Contact.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/Contact.php b/include/Contact.php
index 992ed27e2..bf536ccd5 100644
--- a/include/Contact.php
+++ b/include/Contact.php
@@ -295,8 +295,8 @@ function contact_remove($channel_id, $abook_id) {
$archive = get_pconfig($channel_id, 'system','archive_removed_contacts');
if($archive) {
- q("update abook set abook_flags = abook_flags | %d where abook_id = %d and abook_channel = %d limit 1",
- intval(ABOOK_FLAG_ARCHIVE),
+ q("update abook set abook_flags = ( abook_flags | %d ) where abook_id = %d and abook_channel = %d limit 1",
+ intval(ABOOK_FLAG_ARCHIVED),
intval($abook_id),
intval($channel_id)
);