diff options
author | Mario <mario@mariovavti.com> | 2021-03-22 10:12:57 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-03-22 10:12:57 +0000 |
commit | ccefb99cbee3c8585ede2c6e67289c5d54b38dca (patch) | |
tree | db8efa170ac61e167d2fa1d9dabf19435d419d6b | |
parent | 35ce7dbeaba84ce1c93b7714f0beb5c472033bd7 (diff) | |
download | volse-hubzilla-ccefb99cbee3c8585ede2c6e67289c5d54b38dca.tar.gz volse-hubzilla-ccefb99cbee3c8585ede2c6e67289c5d54b38dca.tar.bz2 volse-hubzilla-ccefb99cbee3c8585ede2c6e67289c5d54b38dca.zip |
libsync fix from zap: look for hubloc_updated instead of hubloc_connected which would always be true
-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 e16b68cf8..7e97e4c70 100644 --- a/Zotlabs/Lib/Libsync.php +++ b/Zotlabs/Lib/Libsync.php @@ -781,7 +781,7 @@ class Libsync { $t = datetime_convert('UTC', 'UTC', 'now - 15 minutes'); if (array_key_exists('site', $arr) && $location['url'] == $arr['site']['url']) { - q("update hubloc set hubloc_connected = '%s', hubloc_updated = '%s' where hubloc_id = %d and hubloc_connected < '%s'", + q("update hubloc set hubloc_connected = '%s', hubloc_updated = '%s' where hubloc_id = %d and hubloc_updated < '%s'", dbesc(datetime_convert()), dbesc(datetime_convert()), intval($r[0]['hubloc_id']), |