diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-08-24 01:28:13 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-08-24 01:28:13 -0700 |
commit | 250d286f1dd8ee9ca244df25946e56b09ee5ff18 (patch) | |
tree | 3d59a21e4aef55bcc4e42aa9c36fca8c8168824a /mod/connedit.php | |
parent | 852d19f2095509a72d9f3f7d39cb300ddb817670 (diff) | |
download | volse-hubzilla-250d286f1dd8ee9ca244df25946e56b09ee5ff18.tar.gz volse-hubzilla-250d286f1dd8ee9ca244df25946e56b09ee5ff18.tar.bz2 volse-hubzilla-250d286f1dd8ee9ca244df25946e56b09ee5ff18.zip |
remove orphan mod_connections editing code (now done in mod/connedit)
Diffstat (limited to 'mod/connedit.php')
-rw-r--r-- | mod/connedit.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mod/connedit.php b/mod/connedit.php index bc8ae5e2e..0944a3dca 100644 --- a/mod/connedit.php +++ b/mod/connedit.php @@ -313,6 +313,18 @@ 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']); |