Verify database exists before trying to open it in search.php

This commit is contained in:
Retro_Guy 2021-11-17 06:34:52 +00:00
parent 5ebdc0313b
commit a420644129
2 changed files with 3 additions and 0 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@ -322,6 +322,9 @@ function get_header_search($group, $terms) {
$name = explode(':', $thisgroup);
$group=$name[0];
$article_database = $spooldir.'/'.$group.'-articles.db3';
if(!is_file($article_database)) {
continue;
}
$article_dbh = article_db_open($article_database);
$article_stmt = $article_dbh->prepare("SELECT * FROM articles WHERE number=:number");
if(is_multibyte($_POST['terms'])) {