phpBB

Code Changes

File: phpbb/cron/task/core/prune_all_forums.php

  Unmodified   Added   Modified   Removed
Line 60Line 60
		$result = $this->db->sql_query($sql);
while ($row = $this->db->sql_fetchrow($result))
{

		$result = $this->db->sql_query($sql);
while ($row = $this->db->sql_fetchrow($result))
{

 
			$log_prune = true;


			if ($row['enable_prune'] && $row['prune_next'] < time())
{
if ($row['prune_days'])
{

			if ($row['enable_prune'] && $row['prune_next'] < time())
{
if ($row['prune_days'])
{

					auto_prune($row['forum_id'], 'posted', $row['forum_flags'], $row['prune_days'], $row['prune_freq']);


					auto_prune($row['forum_id'], 'posted', $row['forum_flags'], $row['prune_days'], $row['prune_freq'], $log_prune);
$log_prune = false;

				}

if ($row['prune_viewed'])
{

				}

if ($row['prune_viewed'])
{

					auto_prune($row['forum_id'], 'viewed', $row['forum_flags'], $row['prune_viewed'], $row['prune_freq']);


					auto_prune($row['forum_id'], 'viewed', $row['forum_flags'], $row['prune_viewed'], $row['prune_freq'], $log_prune);
$log_prune = false;

				}
}

				}
}

 


			if ($row['enable_shadow_prune'] && $row['prune_shadow_next'] < time() && $row['prune_shadow_days'])
{

			if ($row['enable_shadow_prune'] && $row['prune_shadow_next'] < time() && $row['prune_shadow_days'])
{

				auto_prune($row['forum_id'], 'shadow', $row['forum_flags'], $row['prune_shadow_days'], $row['prune_shadow_freq']);

				auto_prune($row['forum_id'], 'shadow', $row['forum_flags'], $row['prune_shadow_days'], $row['prune_shadow_freq'], $log_prune);

			}
}
$this->db->sql_freeresult($result);

			}
}
$this->db->sql_freeresult($result);