aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/Contact.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/Contact.php b/include/Contact.php
index 972911c0f..9bb047060 100644
--- a/include/Contact.php
+++ b/include/Contact.php
@@ -1,9 +1,9 @@
<?php
-function abook_connections($channel_id, $flags = 0) {
+function abook_connections($channel_id, $sql_conditions = '') {
$r = q("select * from abook left join xchan on abook_xchan = xchan_hash where abook_channel = %d
- and not ( abook_flags & %d )",
+ and not ( abook_flags & %d ) $sql_conditions",
intval($channel_id),
intval(ABOOK_FLAG_SELF)
);