forked from GithubBackups/vichan
parent
3e68a3e8b8
commit
162d709526
11
search.php
11
search.php
@ -130,17 +130,6 @@
|
|||||||
$query->bindValue(':limit', $search_limit, PDO::PARAM_INT);
|
$query->bindValue(':limit', $search_limit, PDO::PARAM_INT);
|
||||||
$query->execute() or error(db_error($query));
|
$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 = '';
|
$temp = '';
|
||||||
while($post = $query->fetch()) {
|
while($post = $query->fetch()) {
|
||||||
if(!$post['thread']) {
|
if(!$post['thread']) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user