projects
/
SonOfLokstallBot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make sure to add 1 when using closestIndex to find the current week of the month
[SonOfLokstallBot.git]
/
src
/
common.php
diff --git
a/src/common.php
b/src/common.php
index
272b868
..
173bd32
100644
(file)
--- a/
src/common.php
+++ b/
src/common.php
@@
-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);
})