Only check last for each group in overboard.php

This commit is contained in:
Retro_Guy 2021-05-22 17:09:45 -07:00
parent b42b0a71df
commit 2f2a45b967
1 changed files with 5 additions and 0 deletions

View File

@ -107,9 +107,14 @@ foreach($grouplist as $findgroup) {
$thisgroup = preg_replace('/\./', '/', $findgroup);
if($dbh) {
$query->execute(['findgroup' => $findgroup]);
$i=0;
while (($overviewline = $query->fetch()) !== false) {
$articles[] = $spoolpath.$thisgroup.'/'.$overviewline['number'];
$db_articles[] = $findgroup.':'.$overviewline['number'].':'.$overviewline['date'].':'.$overviewline['name'];
$i++;
if($i > $maxdisplay) {
break;
}
}
}
}