From 6f126108c160fd6c6b16f5c7c3bf137453303bb1 Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Thu, 21 Jan 2021 01:25:05 -0700 Subject: [PATCH] Make sure overboard.php works with tradspool --- Rocksolid_Light/rocksolid/overboard.php | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/Rocksolid_Light/rocksolid/overboard.php b/Rocksolid_Light/rocksolid/overboard.php index 1fd790b..fccf762 100755 --- a/Rocksolid_Light/rocksolid/overboard.php +++ b/Rocksolid_Light/rocksolid/overboard.php @@ -109,21 +109,18 @@ foreach($grouplist as $findgroup) { continue 2; } } -/* $thisgroup = preg_replace('/\./', '/', $findgroup); - if (!is_dir($spoolpath.$thisgroup)) { - continue; - } + if (!is_dir($spoolpath.$thisgroup)) { + continue; + } $stats = stat($spoolpath.$thisgroup); if($stats[9] > $oldest) { -*/ -if(1) { - if($dbh) { - $query->execute(['findgroup' => $findgroup]); - while (($overviewline = $query->fetch()) !== false) { - $articles[] = $spoolpath.$thisgroup.'/'.$overviewline['number']; - $db_articles[] = $findgroup.':'.$overviewline['number'].':'.$overviewline['date']; - } + if($dbh) { + $query->execute(['findgroup' => $findgroup]); + while (($overviewline = $query->fetch()) !== false) { + $articles[] = $spoolpath.$thisgroup.'/'.$overviewline['number']; + $db_articles[] = $findgroup.':'.$overviewline['number'].':'.$overviewline['date']; + } } } }