diff options
author | Haakon Meland Eriksen <haakon.eriksen@far.no> | 2015-08-27 17:57:59 +0200 |
---|---|---|
committer | Haakon Meland Eriksen <haakon.eriksen@far.no> | 2015-08-27 17:57:59 +0200 |
commit | 1b82fb7349a7a4048755d92e757efc5dc227b227 (patch) | |
tree | e614f70f830ed518b185f22203f42c91aea36db0 /mod/connedit.php | |
parent | 092e7378cdaeefaa7b4a954bd865bba1960f01aa (diff) | |
parent | 7b28c42693ff41da61abe4974c7a0a7412b6d6e5 (diff) | |
download | volse-hubzilla-1b82fb7349a7a4048755d92e757efc5dc227b227.tar.gz volse-hubzilla-1b82fb7349a7a4048755d92e757efc5dc227b227.tar.bz2 volse-hubzilla-1b82fb7349a7a4048755d92e757efc5dc227b227.zip |
Merge remote-tracking branch 'upstream/master'
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']); |