diff options
author | zotlabs <mike@macgirvin.com> | 2017-12-30 15:35:18 -0800 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2018-01-03 12:13:54 +0100 |
commit | 5b436d8fc36def68055c269253f163f738ac2604 (patch) | |
tree | c6797c97758ededc59afd07cf47279f9295a6efe /Zotlabs/Module/Connedit.php | |
parent | cd2d1ff02a4d17f23ab3c615c7d9bf56365be58c (diff) | |
download | volse-hubzilla-5b436d8fc36def68055c269253f163f738ac2604.tar.gz volse-hubzilla-5b436d8fc36def68055c269253f163f738ac2604.tar.bz2 volse-hubzilla-5b436d8fc36def68055c269253f163f738ac2604.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.
Diffstat (limited to 'Zotlabs/Module/Connedit.php')
-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()) ); |