From 57af4f9827ad60955ee7287368fc8b9ca77a272c Mon Sep 17 00:00:00 2001 From: 8chan Date: Tue, 10 Jun 2014 17:57:21 +0000 Subject: [PATCH] Save /cute/ --- expire.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/expire.php b/expire.php index bcd5c7e8..35a16dfd 100644 --- a/expire.php +++ b/expire.php @@ -50,8 +50,8 @@ foreach($boards as $board) { } #if (($last_activity_date < $ago or ($last_mod_date and $last_mod_date < $mod_ago)) and (int)$count['count'] < 30) { - if (($last_activity_date < $ago or ($last_mod_date and $last_mod_date < $mod_ago))) { - echo $board, ' ', $last_activity_date->format('Y-m-d H:i:s'), ' ', ($last_mod_date ? $last_mod_date->format('Y-m-d H:i:s') : 'false'), ' ', $count['count'], "\r\n"; + if (($last_activity_date < $ago or ($last_mod_date and $last_mod_date < $mod_ago)) and isset($mods[0]['id'])) { + echo $board, ' ', $last_activity_date->format('Y-m-d H:i:s'), ' ', ($last_mod_date ? $last_mod_date->format('Y-m-d H:i:s') : 'false'), ' ', $count['count'], ' ', $mod, "\r\n"; $delete[] = array('board' => $board, 'last_activity' => $last_activity_date, 'last_mod' => $last_mod_date, 'mod' => isset($mods[0]['username']) ? $mods[0]['username'] : false, 'count' => $count['count']); } }