aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Libsync.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-09-23 11:50:30 +0000
committerMario <mario@mariovavti.com>2020-09-23 11:50:30 +0000
commit42ef6208c14ac579c1071ea880664dbcd42df907 (patch)
treebe72cb05675d1ae53b91b47f6d89c3c5a172b1a5 /Zotlabs/Lib/Libsync.php
parent6f508b81d62f9fec91840d4b7a35eaa5209bdeca (diff)
downloadvolse-hubzilla-42ef6208c14ac579c1071ea880664dbcd42df907.tar.gz
volse-hubzilla-42ef6208c14ac579c1071ea880664dbcd42df907.tar.bz2
volse-hubzilla-42ef6208c14ac579c1071ea880664dbcd42df907.zip
5.0RC testing: do not use intval() on hubloc_id_url
Diffstat (limited to 'Zotlabs/Lib/Libsync.php')
-rw-r--r--Zotlabs/Lib/Libsync.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Libsync.php b/Zotlabs/Lib/Libsync.php
index b16080a51..cff320e11 100644
--- a/Zotlabs/Lib/Libsync.php
+++ b/Zotlabs/Lib/Libsync.php
@@ -821,7 +821,7 @@ class Libsync {
if(intval($r[0]['hubloc_primary']) && (! $location['primary'])) {
$m = q("update hubloc set hubloc_primary = 0, hubloc_updated = '%s' where hubloc_id_url = '%s'",
dbesc(datetime_convert()),
- intval($r[0]['hubloc_id_url'])
+ dbesc($r[0]['hubloc_id_url'])
);
$r[0]['hubloc_primary'] = intval($location['primary']);
hubloc_change_primary($r[0]);