aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Connedit.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-06-28 08:37:05 +0000
committerMario <mario@mariovavti.com>2021-06-28 08:37:05 +0000
commitd322feeb54d087897e642dbd647a429a9b4beeff (patch)
treea0b7e81d19f36ed3ae6ba554bbb8a892d3287b94 /Zotlabs/Module/Connedit.php
parent842c7b31fb6e34c537d6ebf671327c5a114e573a (diff)
downloadvolse-hubzilla-d322feeb54d087897e642dbd647a429a9b4beeff.tar.gz
volse-hubzilla-d322feeb54d087897e642dbd647a429a9b4beeff.tar.bz2
volse-hubzilla-d322feeb54d087897e642dbd647a429a9b4beeff.zip
more deprecate legacy zot
Diffstat (limited to 'Zotlabs/Module/Connedit.php')
-rw-r--r--Zotlabs/Module/Connedit.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/Zotlabs/Module/Connedit.php b/Zotlabs/Module/Connedit.php
index 8910adfa8..7fabf1224 100644
--- a/Zotlabs/Module/Connedit.php
+++ b/Zotlabs/Module/Connedit.php
@@ -40,12 +40,12 @@ class Connedit extends Controller {
if((argc() >= 2) && intval(argv(1))) {
$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",
+ WHERE abook_channel = %d and abook_id = %d and xchan_deleted = 0 LIMIT 1",
intval(local_channel()),
intval(argv(1))
);
if($r) {
- App::$poi = array_shift($r);
+ App::$poi = $r[0];
}
}
@@ -423,7 +423,7 @@ class Connedit extends Controller {
$cmd = argv(2);
$orig_record = q("SELECT abook.*, xchan.* FROM abook left join xchan on abook_xchan = xchan_hash
- WHERE abook_id = %d AND abook_channel = %d AND abook_self = 0 LIMIT 1",
+ WHERE abook_id = %d AND abook_channel = %d AND abook_self = 0 and xchan_deleted = 0 LIMIT 1",
intval($contact_id),
intval(local_channel())
);