diff --git a/lib/requirejs.php b/lib/requirejs.php index b348ee4f566..a01d2e3e44e 100644 --- a/lib/requirejs.php +++ b/lib/requirejs.php @@ -98,7 +98,7 @@ if ($rev > 0 and $rev < (time() + 60 * 60)) { $content = ''; foreach ($jsfiles as $modulename => $jsfile) { $js = file_get_contents($jsfile); - if ($jsfile === false) { + if ($js === false) { error_log('Failed to load JavaScript file ' . $jsfile); $js = '/* Failed to load JavaScript file ' . $jsfile . '. */'; }