Merge pull request #408 from bui/query-too-broad

remove inane code
This commit is contained in:
Fredrick Brennan 2015-02-27 09:42:16 +08:00
commit 352d84edad

View File

@ -130,17 +130,6 @@
$query->bindValue(':limit', $search_limit, PDO::PARAM_INT);
$query->execute() or error(db_error($query));
if($query->rowCount() == $search_limit) {
_syslog(LOG_WARNING, 'Query too broad.');
$body .= '<p class="unimportant" style="text-align:center">('._('Query too broad.').')</p>';
echo Element('page.html', Array(
'config'=>$config,
'title'=>'Search',
'body'=>$body,
));
exit;
}
$temp = '';
while($post = $query->fetch()) {
if(!$post['thread']) {