Move roundUpToNearestMultiple function used in multiple files to functions.php

This commit is contained in:
Marcus Hill
2023-01-26 12:30:25 +00:00
parent 91d0efbde7
commit 39a3ea89c4
4 changed files with 31 additions and 45 deletions

View File

@@ -10,12 +10,6 @@ if ($_SESSION['user_role'] != 3) { ?>
exit();
}
function roundUpToNearestMultiple($n, $increment = 1000)
{
return (int) ($increment * ceil($n / $increment));
}
if (isset($_GET['year'])) {
$year = intval($_GET['year']);
} else {