aboutsummaryrefslogtreecommitdiffstats
path: root/include/Contact.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-01-25 05:12:16 -0800
committerfriendica <info@friendica.com>2013-01-25 05:12:16 -0800
commitda6276255dd54dd8057f138798af44e7fc40b051 (patch)
treef8fe47b66190226b3227a19fd5ceefa54a3bb3e2 /include/Contact.php
parentd8fe7e011513855d9bd0178638bfebd70145b8a5 (diff)
downloadvolse-hubzilla-da6276255dd54dd8057f138798af44e7fc40b051.tar.gz
volse-hubzilla-da6276255dd54dd8057f138798af44e7fc40b051.tar.bz2
volse-hubzilla-da6276255dd54dd8057f138798af44e7fc40b051.zip
api for abook entries
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 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)
);