Avoid creating false database when querying article
This commit is contained in:
parent
aa51e28a65
commit
2d63ae75ae
@ -1425,6 +1425,9 @@ function np_get_db_article($article, $group, $makearray=1, $dbh=null) {
|
|||||||
$closeme = 0;
|
$closeme = 0;
|
||||||
$database = $spooldir.'/'.$group.'-articles.db3';
|
$database = $spooldir.'/'.$group.'-articles.db3';
|
||||||
if(!$dbh) {
|
if(!$dbh) {
|
||||||
|
if(!is_file($database)) {
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
$dbh = article_db_open($database);
|
$dbh = article_db_open($database);
|
||||||
$closeme = 1;
|
$closeme = 1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user