mirror of
https://github.com/friendica/friendica
synced 2024-12-23 15:20:17 +00:00
Bugfix: Item were stored before the expiration date
This commit is contained in:
parent
59ce6de50c
commit
1cff94d476
1 changed files with 1 additions and 1 deletions
|
@ -572,7 +572,7 @@ function item_store($arr, $force_parent = false, $notify = false, $dontcache = f
|
|||
$expire_interval = Config::get('system', 'dbclean-expire-days', 0);
|
||||
|
||||
$r = dba::select('user', array('expire'), array('uid' => $uid), array("limit" => 1));
|
||||
if (dbm::is_result($r) && ($r['expire'] > 0) && ($r['expire'] < $expire_interval)) {
|
||||
if (dbm::is_result($r) && ($r['expire'] > 0) && (($r['expire'] < $expire_interval) || ($expire_interval == 0))) {
|
||||
$expire_interval = $r['expire'];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue