diff options
author | zotlabs <mike@macgirvin.com> | 2017-12-30 15:35:18 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-12-30 15:35:18 -0800 |
commit | e095cb8113c1ba6aec16a3bb500a447480218c19 (patch) | |
tree | 0e0dc7862ae3a00d37a83045c1e9ce9c7e5b38be | |
parent | 1fcf59ff94200a542bfc99c592a924236de1d3c7 (diff) | |
download | volse-hubzilla-e095cb8113c1ba6aec16a3bb500a447480218c19.tar.gz volse-hubzilla-e095cb8113c1ba6aec16a3bb500a447480218c19.tar.bz2 volse-hubzilla-e095cb8113c1ba6aec16a3bb500a447480218c19.zip |
possibly fix hubzilla #673 (prev/next buttons on connedit can show deleted connections). We cannot actually determine that a connection has been deleted (this is typically accomplished by removing the abook record), but we can determine if the corresponding xchan has been deleted.
-rw-r--r-- | Zotlabs/Module/Connedit.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Module/Connedit.php b/Zotlabs/Module/Connedit.php index 23c5282e3..e0511b0d3 100644 --- a/Zotlabs/Module/Connedit.php +++ b/Zotlabs/Module/Connedit.php @@ -567,7 +567,7 @@ class Connedit extends \Zotlabs\Web\Controller { $contact_id = \App::$poi['abook_id']; $contact = \App::$poi; - $cn = q("SELECT abook_id, xchan_name from abook left join xchan on abook_xchan = xchan_hash where abook_channel = %d and abook_self = 0 order by xchan_name", + $cn = q("SELECT abook_id, xchan_name from abook left join xchan on abook_xchan = xchan_hash where abook_channel = %d and abook_self = 0 and xchan_deleted = 0 order by xchan_name", intval(local_channel()) ); |