From 1f427e0e5b3a5526625e90d43746c89953ab493a Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 24 Mar 2015 16:30:14 -0700 Subject: make the log message reflect what's really happening --- include/expire.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/expire.php') diff --git a/include/expire.php b/include/expire.php index 8fedf71b5..9ef0f7b69 100644 --- a/include/expire.php +++ b/include/expire.php @@ -53,7 +53,9 @@ function expire_run($argv, $argc){ continue; // if the site expiration is non-zero and less than person expiration, use that - logger('Expire: ' . $rr['channel_address'] . ' interval: ' . $rr['channel_expire_days'], LOGGER_DEBUG); + logger('Expire: ' . $rr['channel_address'] . ' interval: ' . ((intval($site_expire) && intval($site_expire) < intval($rr['channel_expire_days'])) + ? $site_expire + : $rr['channel_expire_days']), LOGGER_DEBUG); item_expire($rr['channel_id'], ((intval($site_expire) && intval($site_expire) < intval($rr['channel_expire_days'])) ? $site_expire -- cgit v1.2.3