aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorM.Dent <dentm42@dm42.net>2018-10-28 17:30:22 -0400
committerM.Dent <dentm42@dm42.net>2018-10-28 17:30:22 -0400
commit1241e778f9073b5ba50d966eea20b28b9400339b (patch)
tree95dd7fb2fe2d18c161705e1e21c4c79e98a67950
parent3ab0ef1902a9ff1f33cf5540a866745dc98a11a9 (diff)
downloadvolse-hubzilla-1241e778f9073b5ba50d966eea20b28b9400339b.tar.gz
volse-hubzilla-1241e778f9073b5ba50d966eea20b28b9400339b.tar.bz2
volse-hubzilla-1241e778f9073b5ba50d966eea20b28b9400339b.zip
Fix to set update time in pconfig on update
-rw-r--r--Zotlabs/Lib/PConfig.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/Zotlabs/Lib/PConfig.php b/Zotlabs/Lib/PConfig.php
index 31c0ee87b..8bc5681f0 100644
--- a/Zotlabs/Lib/PConfig.php
+++ b/Zotlabs/Lib/PConfig.php
@@ -157,12 +157,12 @@ class PConfig {
$new = (\App::$config[$uid][$family]['pcfgud:'.$key] < $updated);
if ($new) {
- $ret = q("UPDATE pconfig SET v = '%s' WHERE uid = %d and cat = '%s' AND k = '%s' AND updated = '%s'",
+ $ret = q("UPDATE pconfig SET v = '%s', updated = '%s' WHERE uid = %d and cat = '%s' AND k = '%s' ",
dbesc($dbvalue),
+ dbesc($updated),
intval($uid),
dbesc($family),
- dbesc($key),
- dbesc($updated)
+ dbesc($key)
);
} else {
logger('Refusing to update pconfig with outdated info.', LOGGER_NORMAL, LOG_ERR);