V3.5 - Jan 1st 2020
- bug fix - now is corrected to 'yesterday' (latest possible record)
CU possible error report if year report is missing - fixed
Don't know why this hasn't been pointed out over the years - or perhaps it's just the way error reporting now is ?
@mark ... code incomplete and not quite correct
Code: Select all
$now = date_create('now')->modify('-1 day');
$now_month = $now->format('m'); // mark said mm
$now_year = $now->format('Y');
$prior_month = $now_month - 1; // mark didn't mention
$prior_year = $now_year - 1; // mark didn't mention
Code: Select all
// if ($filesfound[$t] || ($yy == $now_year && $Naming != "CU")) {
if ((array_key_exists($t, $filesfound) && $filesfound[$t]) || ($yy == $now_year && $Naming != "CU")) {