diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-08-23 17:36:00 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-08-23 17:36:00 -0700 |
commit | 8cd583fd8ca1c81a13a08385a2cd6921395c0527 (patch) | |
tree | 0efc0b9d5d48e26d16b0b1e28af60c71350897ec /mod/connedit.php | |
parent | bf190be5b42378e3a9c122a5ff2311691b4814fe (diff) | |
download | volse-hubzilla-8cd583fd8ca1c81a13a08385a2cd6921395c0527.tar.gz volse-hubzilla-8cd583fd8ca1c81a13a08385a2cd6921395c0527.tar.bz2 volse-hubzilla-8cd583fd8ca1c81a13a08385a2cd6921395c0527.zip |
sync abook flags in memory after altering them
Diffstat (limited to 'mod/connedit.php')
-rw-r--r-- | mod/connedit.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mod/connedit.php b/mod/connedit.php index 866f83615..75a5fd719 100644 --- a/mod/connedit.php +++ b/mod/connedit.php @@ -314,6 +314,17 @@ function connedit_clone(&$a) { if(! $a->poi) return; + + $r = q("SELECT abook.*, xchan.* + FROM abook left join xchan on abook_xchan = xchan_hash + WHERE abook_channel = %d and abook_id = %d LIMIT 1", + intval(local_channel()), + intval($a->poi['abook_id']) + ); + if($r) { + $a->poi = $r[0]; + } + $clone = $a->poi; unset($clone['abook_id']); |