Avoid creating false database when querying article

This commit is contained in:
Retro_Guy 2021-09-18 05:48:43 +00:00
parent aa51e28a65
commit 2d63ae75ae
1 changed files with 3 additions and 0 deletions

View File

@ -1425,6 +1425,9 @@ function np_get_db_article($article, $group, $makearray=1, $dbh=null) {
$closeme = 0;
$database = $spooldir.'/'.$group.'-articles.db3';
if(!$dbh) {
if(!is_file($database)) {
return FALSE;
}
$dbh = article_db_open($database);
$closeme = 1;
}