aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-11-17 16:18:59 +0100
committerFabio Comuni <fabrix.xm@gmail.com>2011-11-17 16:18:59 +0100
commit590f1d2b25c00fc7bea85cb5de1a4f667ea86af1 (patch)
treee7df482e611efb7ff6d132cf5f2379eeb894d2ce /include/items.php
parent79603e31463eb143392c5d27a5b2c87687b2460c (diff)
downloadvolse-hubzilla-590f1d2b25c00fc7bea85cb5de1a4f667ea86af1.tar.gz
volse-hubzilla-590f1d2b25c00fc7bea85cb5de1a4f667ea86af1.tar.bz2
volse-hubzilla-590f1d2b25c00fc7bea85cb5de1a4f667ea86af1.zip
log less in expire items
Diffstat (limited to 'include/items.php')
-rw-r--r--include/items.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/include/items.php b/include/items.php
index 8c9a714cd..a008e4ac8 100644
--- a/include/items.php
+++ b/include/items.php
@@ -2733,15 +2733,12 @@ function item_expire($uid,$days) {
$expire_photos = get_pconfig($uid, 'expire','photos');
$expire_photos = (($expire_photos===false)?0:intval($expire_photos)); // default if not set: 0
- logger('expire: # items=' . count($r) );
- logger("expire: items: $expire_items, notes: $expire_notes, photos: $expire_photos");
+ logger('expire: # items=' . count($r). "; expire items: $expire_items, expire notes: $expire_notes, expire photos: $expire_photos");
foreach($r as $item) {
// Only expire posts, not photos and photo comments
- logger('expire: item '.$item['type'].' id '.intval($item['id']).' "'.$item['body'].'" '.$item['resource-id']);
-
if($expire_photos==0 && strlen($item['resource-id']))
continue;
if($expire_notes==0 && $item['type']=='note')
@@ -2749,8 +2746,6 @@ function item_expire($uid,$days) {
if($expire_items==0 && $item['type']!='note')
continue;
- logger('expire');
-
$r = q("UPDATE `item` SET `deleted` = 1, `edited` = '%s', `changed` = '%s' WHERE `id` = %d LIMIT 1",
dbesc(datetime_convert()),
dbesc(datetime_convert()),