From d938c793852f097d25c57a81c8004fc8616c1249 Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 23 Sep 2020 11:50:30 +0000 Subject: 5.0RC testing: do not use intval() on hubloc_id_url (cherry picked from commit 42ef6208c14ac579c1071ea880664dbcd42df907) --- Zotlabs/Lib/Libsync.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); -- cgit v1.2.3