[web-php] master: Silence warning if there are no JS files

From: Date: Tue, 12 Aug 2025 13:40:50 +0000
Subject: [web-php] master: Silence warning if there are no JS files
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-33096@lists.php.net to get a copy of this message
Author: Derick Rethans (derickr) Date: 2025-08-12T14:29:29+01:00 Commit: https://github.com/php/web-php/commit/e495c17b9ea112f342ef698b29826e92c907ada8 Raw diff: https://github.com/php/web-php/commit/e495c17b9ea112f342ef698b29826e92c907ada8.diff Silence warning if there are no JS files Changed paths: M include/header.inc Diff: diff --git a/include/header.inc b/include/header.inc index 0bba3409f0..b339b625d9 100644 --- a/include/header.inc +++ b/include/header.inc @@ -23,6 +23,7 @@ foreach($css_files as $filename) { $CSS[$filename] = @filemtime($path); } +$JS = []; if (isset($config["js_files"])) { foreach($config['js_files'] as $filename) { $path = dirname(__DIR__) . $filename;

« previous php.webmaster (#33096) next »