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

Author: Derick Rethans (derickr)
Date: 2025-08-12T14:29:29+01:00

Commit: Silence warning if there are no JS files · php/web-php@e495c17 · GitHub
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;