From 8e4a56f89c5d3ffd2a7ef756ecb0ece4376f339d Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Tue, 17 Dec 2024 20:01:48 +0300 Subject: [PATCH] Adding a null check --- helpers.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/helpers.inc.php b/helpers.inc.php index ac86d0c..c1f03d8 100644 --- a/helpers.inc.php +++ b/helpers.inc.php @@ -222,6 +222,9 @@ function need_to_regen_any(array $files, array $deps, bool $debug = false) : boo echo "need_to_regen_any, earliest file: $earliest_file ($date)\n"; } + if($earliest_file === null) + return true; + return need_to_regen($earliest_file, $deps, $debug); }