Only check last for each group in overboard.php
This commit is contained in:
parent
b42b0a71df
commit
2f2a45b967
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue