diff --git a/pmd_general.php b/pmd_general.php
index 41fcb7988..a3926a4f6 100644
--- a/pmd_general.php
+++ b/pmd_general.php
@@ -42,7 +42,7 @@ echo '
var db = "' . PMA_escapeJsString($db) . '";
var token = "' . PMA_escapeJsString($token) . '";';
echo "\n";
- if($_REQUEST['query']) {
+ if (! empty($_REQUEST['query'])) {
echo '
$(document).ready(function(){
$(".trigger").click(function(){
@@ -113,7 +113,7 @@ echo $script_tabs . $script_contr . $script_display_field;
>
- ';
echo '
';
echo '