punbb/include/common_admin.php
changeset 9 a932ce8c4827
parent 7 98bbc533541c
equal deleted inserted replaced
8:8baccbad4a55 9:a932ce8c4827
   133 	$query = array(
   133 	$query = array(
   134 		'SELECT'	=> 't.id',
   134 		'SELECT'	=> 't.id',
   135 		'FROM'		=> 'topics AS t',
   135 		'FROM'		=> 'topics AS t',
   136 		'WHERE'		=> 't.forum_id='.$forum_id
   136 		'WHERE'		=> 't.forum_id='.$forum_id
   137 	);
   137 	);
   138 
   138   
   139 	if ($prune_date != -1)
   139 	if ($prune_date != -1)
   140 		$query['WHERE'] .= ' AND last_post<'.$prune_date;
   140 		$query['WHERE'] .= ' AND last_post<'.$prune_date;
   141 	if (!$prune_sticky)
   141 	if (!$prune_sticky)
   142 		$query['WHERE'] .= ' AND sticky=\'0\'';
   142 		$query['WHERE'] .= ' AND sticky=\'0\'';
   143 
   143