aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Libzot.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-10-05 08:41:31 +0000
committerMario <mario@mariovavti.com>2022-10-05 08:41:31 +0000
commit4549bc89eca7418dd86424d1791f7a86a5966ce9 (patch)
tree7ca61519ee4b5d389d96375af76607a95a7a20a5 /Zotlabs/Lib/Libzot.php
parenta0430f91bd72cc200165f10d3825a88efca53291 (diff)
downloadvolse-hubzilla-4549bc89eca7418dd86424d1791f7a86a5966ce9.tar.gz
volse-hubzilla-4549bc89eca7418dd86424d1791f7a86a5966ce9.tar.bz2
volse-hubzilla-4549bc89eca7418dd86424d1791f7a86a5966ce9.zip
when updating hubloc_connected also update hubloc_updated
Diffstat (limited to 'Zotlabs/Lib/Libzot.php')
-rw-r--r--Zotlabs/Lib/Libzot.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php
index 3d14248de..6f7d74606 100644
--- a/Zotlabs/Lib/Libzot.php
+++ b/Zotlabs/Lib/Libzot.php
@@ -3106,7 +3106,8 @@ class Libzot {
$t = datetime_convert('UTC', 'UTC', 'now - 15 minutes');
- $r = q("update hubloc set hubloc_connected = '%s' where hubloc_id = %d and hubloc_site_id = '%s' and hubloc_connected < '%s' ",
+ q("update hubloc set hubloc_connected = '%s', hubloc_updated = '%s' where hubloc_id = %d and hubloc_site_id = '%s' and hubloc_connected < '%s' ",
+ dbesc(datetime_convert()),
dbesc(datetime_convert()),
intval($hub['hubloc_id']),
dbesc($site_id),