aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-09-23 11:50:30 +0000
committerMario <mario@mariovavti.com>2020-09-23 14:16:17 +0200
commitd938c793852f097d25c57a81c8004fc8616c1249 (patch)
tree676671456c3240a065541fdc37c613d2c8cdf80d /Zotlabs
parent987a369fec11107294a5563a7172e80cb611423d (diff)
downloadvolse-hubzilla-d938c793852f097d25c57a81c8004fc8616c1249.tar.gz
volse-hubzilla-d938c793852f097d25c57a81c8004fc8616c1249.tar.bz2
volse-hubzilla-d938c793852f097d25c57a81c8004fc8616c1249.zip
5.0RC testing: do not use intval() on hubloc_id_url
(cherry picked from commit 42ef6208c14ac579c1071ea880664dbcd42df907)
Diffstat (limited to 'Zotlabs')
-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]);