diff options
author | Rouslan Placella <rouslan@placella.com> | 2013-11-19 00:49:03 +0400 |
---|---|---|
committer | Rouslan Placella <rouslan@placella.com> | 2013-11-19 00:52:37 +0400 |
commit | 7c0a63a4a0bec7f2fbc9c26f91cef86461141118 (patch) | |
tree | daef6b7d59ad9a69abc4b68d6d33dbea4436b1c3 /js/error_report.js | |
parent | ef39376580a24ac86ca4cf18ad05566d21ca6806 (diff) |
Fixed bug #4117
Diffstat (limited to 'js/error_report.js')
-rw-r--r-- | js/error_report.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/js/error_report.js b/js/error_report.js index c699550a3e..2a78610f3b 100644 --- a/js/error_report.js +++ b/js/error_report.js @@ -206,20 +206,20 @@ var ErrorReport = { * @return object */ _get_report_data: function (exception) { - var token = PMA_commonParams.get('token'); - var report_data = { "ajax_request": true, - "token": token, + "token": PMA_commonParams.get('token'), "exception": exception, "current_url": window.location.href, - "microhistory": ErrorReport._get_microhistory(), - "scripts": AJAX.cache.pages[AJAX.cache.current - 1].scripts.map( + "microhistory": ErrorReport._get_microhistory() + }; + if (typeof AJAX.cache.pages[this.current - 1] === 'undefined') { + report_data.scripts = AJAX.cache.pages[AJAX.cache.current - 1].scripts.map( function (script) { return script.name; } - ) - }; + ); + } return report_data; }, /** |