equal
deleted
inserted
replaced
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 |