aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-09-22 08:23:28 +0000
committerMario <mario@mariovavti.com>2020-09-22 08:23:28 +0000
commitbe627c3f3aa7b4ab4834aff30fba79ee67b4fa50 (patch)
tree9962846b1163104766a0dded44527d562cc318d2 /include
parent80fdf53cc382a63dd6246901ab935e830e7e7728 (diff)
downloadvolse-hubzilla-be627c3f3aa7b4ab4834aff30fba79ee67b4fa50.tar.gz
volse-hubzilla-be627c3f3aa7b4ab4834aff30fba79ee67b4fa50.tar.bz2
volse-hubzilla-be627c3f3aa7b4ab4834aff30fba79ee67b4fa50.zip
changelog and use dbq() where apropriate in z6trans_connections()
Diffstat (limited to 'include')
-rw-r--r--include/connections.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/connections.php b/include/connections.php
index c7ec163c8..96077cd69 100644
--- a/include/connections.php
+++ b/include/connections.php
@@ -775,7 +775,7 @@ function vcard_query(&$r) {
function z6trans_connections() {
- $r = q("SELECT DISTINCT abook.abook_xchan, hubloc.hubloc_addr, hubloc.hubloc_url, hubloc.hubloc_guid, site.site_project, site.site_version FROM abook
+ $r = dbq("SELECT DISTINCT abook.abook_xchan, hubloc.hubloc_addr, hubloc.hubloc_url, hubloc.hubloc_guid, site.site_project, site.site_version FROM abook
LEFT JOIN hubloc ON abook_xchan = hubloc_hash
LEFT JOIN site ON hubloc_url = site_url
WHERE abook.abook_self = 0 AND hubloc.hubloc_network = 'zot'
@@ -806,7 +806,7 @@ function z6trans_connections() {
logger("z6trans_connections: transition $zot_xchan to $zot6_xchan");
- q("START TRANSACTION");
+ dbq("START TRANSACTION");
$q1 = q("UPDATE abook set abook_xchan = '%s' WHERE abook_xchan = '%s'",
dbesc($zot6_xchan),
@@ -824,13 +824,13 @@ function z6trans_connections() {
);
if($q1 && $q2 && $q3) {
- q("COMMIT");
+ dbq("COMMIT");
logger("z6trans_connections: completed");
continue;
}
logger("z6trans_connections: failed - performing rollback");
- q("ROLLBACK");
+ dbq("ROLLBACK");
}
}