From fb173900a16938c3ab7f066e4909d50b9f764473 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 30 Oct 2012 21:37:58 -0700 Subject: more progress on address book --- include/Contact.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'include/Contact.php') diff --git a/include/Contact.php b/include/Contact.php index c3600b9a3..485afa3ba 100644 --- a/include/Contact.php +++ b/include/Contact.php @@ -1,6 +1,24 @@ $abook['xchan_name'], + $photo => $abook['xchan_photo_l'] + )); +} + +function abook_toggle_flag($abook,$flag) { + + $r = q("UPDATE abook set abook_flags = (abook_flags ^ %d) where abook_id = %d and abook_channel = %d limit 1", + intval($flag), + intval($abook['abook_id']), + intval($abook['abook_channel']) + ); + return $r; + +} + -- cgit v1.2.3