Fix to set update time in pconfig on update
This commit is contained in:
parent
3ab0ef1902
commit
1241e778f9
@ -157,12 +157,12 @@ class PConfig {
|
|||||||
$new = (\App::$config[$uid][$family]['pcfgud:'.$key] < $updated);
|
$new = (\App::$config[$uid][$family]['pcfgud:'.$key] < $updated);
|
||||||
|
|
||||||
if ($new) {
|
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($dbvalue),
|
||||||
|
dbesc($updated),
|
||||||
intval($uid),
|
intval($uid),
|
||||||
dbesc($family),
|
dbesc($family),
|
||||||
dbesc($key),
|
dbesc($key)
|
||||||
dbesc($updated)
|
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
logger('Refusing to update pconfig with outdated info.', LOGGER_NORMAL, LOG_ERR);
|
logger('Refusing to update pconfig with outdated info.', LOGGER_NORMAL, LOG_ERR);
|
||||||
|
Reference in New Issue
Block a user