aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-03-11 21:58:45 +0000
committerMario <mario@mariovavti.com>2021-03-11 21:58:45 +0000
commit31e237729c3cd1b0ccbef67db5b7f36e1027c6dc (patch)
treebf895e6ca8e779424a9d9b63bf242c0cec31b6ca /Zotlabs/Lib
parentd2b03f6a9bcb8f0b13bf45f9165f5f2efdfe35cb (diff)
downloadvolse-hubzilla-31e237729c3cd1b0ccbef67db5b7f36e1027c6dc.tar.gz
volse-hubzilla-31e237729c3cd1b0ccbef67db5b7f36e1027c6dc.tar.bz2
volse-hubzilla-31e237729c3cd1b0ccbef67db5b7f36e1027c6dc.zip
introduce the follow_failover hook
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r--Zotlabs/Lib/Connect.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/Zotlabs/Lib/Connect.php b/Zotlabs/Lib/Connect.php
index 481b02ce2..21bec171b 100644
--- a/Zotlabs/Lib/Connect.php
+++ b/Zotlabs/Lib/Connect.php
@@ -207,13 +207,13 @@ class Connect {
}
$my_perms = $p['perms'];
-
+
$profile_assign = get_pconfig($uid,'system','profile_assign','');
// See if we are already connected by virtue of having an abook record
- $r = q("select abook_id, abook_xchan, abook_pending, abook_instance from abook
+ $r = q("select abook_id, abook_xchan, abook_pending, abook_instance from abook
where abook_xchan = '%s' and abook_channel = %d limit 1",
dbesc($xchan_hash),
intval($uid)
@@ -282,7 +282,7 @@ class Connect {
// fetch the entire record
- $r = q("select abook.*, xchan.* from abook left join xchan on abook_xchan = xchan_hash
+ $r = q("select abook.*, xchan.* from abook left join xchan on abook_xchan = xchan_hash
where abook_xchan = '%s' and abook_channel = %d limit 1",
dbesc($xchan_hash),
intval($uid)