Increment article number if writing to group with no local_groups.txt entry

This commit is contained in:
Retro_Guy 2021-02-22 01:47:49 -07:00
parent d841469930
commit 67f06c4acf
2 changed files with 2 additions and 0 deletions

View File

@ -1063,6 +1063,7 @@ $date_i,$mid_i,$references_i,$bytes_i,$lines_i,$xref_i) {
$local = $ok_article[key(array_slice($ok_article, -1, 1, true))]; $local = $ok_article[key(array_slice($ok_article, -1, 1, true))];
if(!is_numeric($local)) if(!is_numeric($local))
$local = 0; $local = 0;
$local = $local + 1;
} }
break; break;
} }

View File

@ -168,6 +168,7 @@ function get_articles($ns, $group) {
if(!is_numeric($local)) { if(!is_numeric($local)) {
$local = 0; $local = 0;
} }
$local = $local + 1;
} }
if($local < 1) if($local < 1)
$local = 1; $local = 1;