mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 05:20:56 +02:00
[ticket/14277] Fix undefined index error in migrations
PHPBB3-14277
This commit is contained in:
@@ -243,8 +243,21 @@
|
||||
*/
|
||||
function parseMessage(messageJSON) {
|
||||
$('#loading_indicator').css('display', 'none');
|
||||
var responseObject;
|
||||
|
||||
var responseObject = JSON.parse(messageJSON);
|
||||
try {
|
||||
responseObject = JSON.parse(messageJSON);
|
||||
}
|
||||
catch (err) {
|
||||
if (window.console) {
|
||||
console.log('Failed to parse JSON object\n\nMessage: ' + err.message + '\n\nServer Response: ' + messageJSON);
|
||||
} else {
|
||||
alert('Failed to parse JSON object\n\nMessage: ' + err.message + '\n\nServer Response: ' + messageJSON);
|
||||
}
|
||||
|
||||
resetPolling();
|
||||
return;
|
||||
}
|
||||
|
||||
// Parse object
|
||||
if (responseObject.hasOwnProperty('errors')) {
|
||||
|
Reference in New Issue
Block a user