diff options
Diffstat (limited to '_site/includes/telemetry.php')
-rw-r--r-- | _site/includes/telemetry.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/_site/includes/telemetry.php b/_site/includes/telemetry.php index cb82c40..1748eef 100644 --- a/_site/includes/telemetry.php +++ b/_site/includes/telemetry.php @@ -8,16 +8,16 @@ $month = date('m'); $year = date('y'); $url = "unchained:" .explode("?", $_SERVER['REQUEST_URI'])[0]; -if (!isset($db[$year]) && $_SERVER['PHP_SELF'] !== "/404.php") { +if (!isset($db[$year]) && substr($_SERVER['PHP_SELF'], 0, 5) !== "/errs") { $db[$year] = []; } -if (!isset($db[$year][$month]) && $_SERVER['PHP_SELF'] !== "/404.php") { +if (!isset($db[$year][$month]) && substr($_SERVER['PHP_SELF'], 0, 5) !== "/errs") { $db[$year][$month] = []; } -if (!isset($db[$year][$month][$day]) && $_SERVER['PHP_SELF'] !== "/404.php") { +if (!isset($db[$year][$month][$day]) && substr($_SERVER['PHP_SELF'], 0, 5) !== "/errs") { $db[$year][$month][$day] = []; } -if (!isset($db[$year][$month][$day][$url]) && $_SERVER['PHP_SELF'] !== "/404.php") { +if (!isset($db[$year][$month][$day][$url]) && substr($_SERVER['PHP_SELF'], 0, 5) !== "/errs") { $db[$year][$month][$day][$url] = []; } |