diff options
author | M.Dent <dentm42@dm42.net> | 2018-10-28 17:30:22 -0400 |
---|---|---|
committer | M.Dent <dentm42@dm42.net> | 2018-10-28 17:30:22 -0400 |
commit | 1241e778f9073b5ba50d966eea20b28b9400339b (patch) | |
tree | 95dd7fb2fe2d18c161705e1e21c4c79e98a67950 /Zotlabs/Lib | |
parent | 3ab0ef1902a9ff1f33cf5540a866745dc98a11a9 (diff) | |
download | volse-hubzilla-1241e778f9073b5ba50d966eea20b28b9400339b.tar.gz volse-hubzilla-1241e778f9073b5ba50d966eea20b28b9400339b.tar.bz2 volse-hubzilla-1241e778f9073b5ba50d966eea20b28b9400339b.zip |
Fix to set update time in pconfig on update
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r-- | Zotlabs/Lib/PConfig.php | 6 |
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); |