Extension talk:Javascript

The existing JavaScript.php gives a PHP warning on line 28 if there are no *.js files along with it and on line 39 if there are no *.css files along with it like: PHP Warning: Invalid argument supplied for foreach in /var/www/mediawiki/extensions/JavaScript/JavaScript.php on line 28, referer: http://www.....

This is because the glob PHP function cannot distinguish between no entries and an error condition when returning false.

It can be remedied with a check to eliminate the warnings by making the file as:
 * Wheres the rest of this code? A PHP alway and with a ?> . But your code don't end with it.