diff --git a/libraries/core.lib.php b/libraries/core.lib.php
index c2c82fb29..cb1a851c4 100644
--- a/libraries/core.lib.php
+++ b/libraries/core.lib.php
@@ -682,10 +682,10 @@ function PMA_linkURL($url) {
* @return string HTML code for javascript inclusion.
*/
function PMA_includeJS($url) {
- if (strpos($js_script_file, '?') === FALSE) {
- return '' . "\n";
+ if (strpos($url, '?') === FALSE) {
+ return '' . "\n";
} else {
- return '' . "\n";
+ return '' . "\n";
}
}
?>