diff options
author | Atul Pratap Singh <atulpratapsingh05@gmail.com> | 2014-10-01 08:30:54 +0400 |
---|---|---|
committer | Atul Pratap Singh <atulpratapsingh05@gmail.com> | 2014-10-01 08:30:54 +0400 |
commit | a020eac11a26977295cf2439ddd2e5b4af2c88fe (patch) | |
tree | a25ad8d5dbfdc66f96321930dab50de9fe242e3b /js/tbl_select.js | |
parent | dbdd90511bcb24fefcf2b88f12bd342d4abef9b2 (diff) |
Add js checks in multiple files if data is undefined
Signed-off-by: Atul Pratap Singh <atulpratapsingh05@gmail.com>
Diffstat (limited to 'js/tbl_select.js')
-rw-r--r-- | js/tbl_select.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/tbl_select.js b/js/tbl_select.js index 3c867824eb..6b52237269 100644 --- a/js/tbl_select.js +++ b/js/tbl_select.js @@ -106,7 +106,7 @@ AJAX.registerOnload('tbl_select.js', function () { $.post($search_form.attr('action'), values, function (data) { PMA_ajaxRemoveMessage($msgbox); - if (data.success === true) { + if (typeof data !== 'undefined' && data.success === true) { if (typeof data.sql_query !== 'undefined') { // zero rows $("#sqlqueryresults").html(data.sql_query); } else { // results found |