From 1cff94d47627c180f6c44c9278cf20ae53958100 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 18 Oct 2017 18:01:08 +0000 Subject: [PATCH] Bugfix: Item were stored before the expiration date --- include/items.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/items.php b/include/items.php index a67971cf57..d1c91b9403 100644 --- a/include/items.php +++ b/include/items.php @@ -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']; } -- 2.39.5