mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 01:37:02 +02:00
theme fixes
This commit is contained in:
@ -47,7 +47,7 @@ class ModelPolicyRetention extends Model {
|
||||
$default_retention = DEFAULT_RETENTION * 86400;
|
||||
|
||||
$delta = NOW + 86400 * $data['days'] - $default_retention;
|
||||
$start_ts = NOW - $default_retention;
|
||||
$start_ts = NOW - 2*$default_retention;
|
||||
|
||||
$query = $this->db->query("UPDATE " . VIEW_MESSAGES . " SET retained=? WHERE arrived > ? AND (todomain=? OR fromdomain=?)", array($delta, $start_ts, $data['domain'], $data['domain']));
|
||||
|
||||
|
Reference in New Issue
Block a user