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:
authorMadhura Jayaratne <madhura.cj@gmail.com>2015-06-26 11:33:18 +0300
committerMadhura Jayaratne <madhura.cj@gmail.com>2015-06-26 11:33:18 +0300
commite453cb818b7714e1b6231221c343660c5496ed7f (patch)
tree2745e8ff0488fe466d76524b7ee7758f32054281 /js/console.js
parenta0beb6da88b88f8bcb4c64802fcb704c17cb6d06 (diff)
bug #4969 Autoload from prefs_storage not behaving properly
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Diffstat (limited to 'js/console.js')
-rw-r--r--js/console.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/console.js b/js/console.js
index 6523c770e3..3493f13d1d 100644
--- a/js/console.js
+++ b/js/console.js
@@ -173,7 +173,7 @@ var PMA_console = {
PMA_console.ajaxCallback(data);
} catch (e) {
console.log("Invalid JSON!" + e.message);
- if(AJAX.xhr.status === 0 && AJAX.xhr.statusText !== 'abort') {
+ if(AJAX.xhr && AJAX.xhr.status === 0 && AJAX.xhr.statusText !== 'abort') {
PMA_ajaxShowMessage($('<div />',{class:'error',html:PMA_messages.strRequestFailed+' ( '+AJAX.xhr.statusText+' )'}));
AJAX.active = false;
AJAX.xhr = null;