summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-06 15:10:40 +0300
committerAndrew Dolgov <[email protected]>2021-02-06 15:10:40 +0300
commitb2341679d53b227fc90fba34c3a7e6453e3cad6e (patch)
tree02f00f3fd0457a9dacccdd1ef5967c3aaa2579c0
parente3322036c0d76f667bf35cdd0f82ab0163a68ea0 (diff)
fix nonexistant file warning
-rw-r--r--index.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/index.php b/index.php
index 9da75cd..85e19a1 100644
--- a/index.php
+++ b/index.php
@@ -60,6 +60,8 @@
'lib/fonts/pmn-caecilia-75.ttf'
];
+ $check_files_mtime = array_filter($check_files_mtime, "file_exists");
+
$last_mtime = array_reduce(
array_map("filemtime", $check_files_mtime),
function ($carry, $item) {