Make sure to add 1 when using closestIndex to find the current week of the month
[SonOfLokstallBot.git] / src / common.php
index 272b868..173bd32 100644 (file)
@@ -327,7 +327,6 @@ function getFilePathsForYear(int $year) {
 }
 
 function closestIndex($n, array $list) {
-    //return $list[closestIndex($n, $list)];
     $a = map(function(int $v) use ($n) : int {
             return (int)abs($v - $n);
         })