diff --git a/js/db_operations.js b/js/db_operations.js index 4e3dedf4f..502ca0d00 100644 --- a/js/db_operations.js +++ b/js/db_operations.js @@ -60,9 +60,9 @@ $(document).ready(function() { .after(data.sql_query); //Remove the empty notice div generated due to a NULL query passed to PMA_showMessage() - var notice_class = $("#topmenucontainer").next("div").find('.notice'); - if($(notice_class).text() == '') { - $(notice_class).remove(); + var $notice_class = $("#topmenucontainer").next("div").find('.notice'); + if ($notice_class.text() == '') { + $notice_class.remove(); } $("" + PMA_messages['strReloadDatabase'] + "?").dialog({