Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRouslan Placella <rouslan@placella.com>2013-11-19 00:49:03 +0400
committerRouslan Placella <rouslan@placella.com>2013-11-19 00:52:37 +0400
commit7c0a63a4a0bec7f2fbc9c26f91cef86461141118 (patch)
treedaef6b7d59ad9a69abc4b68d6d33dbea4436b1c3 /js/error_report.js
parentef39376580a24ac86ca4cf18ad05566d21ca6806 (diff)
Fixed bug #4117
Diffstat (limited to 'js/error_report.js')
-rw-r--r--js/error_report.js14
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;
},
/**