From 6b40e78795c83abc15b925713b75e446abdecc39 Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Fri, 23 Aug 2024 18:15:16 +0300 Subject: [PATCH] Adding null check --- helpers.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers.inc.php b/helpers.inc.php index e6e1366..03568f6 100644 --- a/helpers.inc.php +++ b/helpers.inc.php @@ -180,7 +180,7 @@ function need_to_regen(string $file, array $deps, bool $debug = false) : bool $fmtime = filemtime($file); foreach($deps as $dep) { - if(is_file($dep) && (filemtime($dep) > $fmtime)) + if($dep && is_file($dep) && (filemtime($dep) > $fmtime)) { if($debug) echo "$dep > $file\n";