diff options
author | Mario <mario@mariovavti.com> | 2020-09-23 11:50:30 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-09-23 14:16:17 +0200 |
commit | d938c793852f097d25c57a81c8004fc8616c1249 (patch) | |
tree | 676671456c3240a065541fdc37c613d2c8cdf80d /Zotlabs | |
parent | 987a369fec11107294a5563a7172e80cb611423d (diff) | |
download | volse-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.php | 2 |
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]); |