[ticket/12849] Fixed possible ReferenceError in core.js.

PHPBB3-12849
This commit is contained in:
Callum Macrae 2014-07-13 23:15:28 +01:00
parent 99e08bffd8
commit 581391c21e

View file

@ -272,7 +272,7 @@ phpbb.ajaxify = function(options) {
* Handler for AJAX errors * Handler for AJAX errors
*/ */
function errorHandler(jqXHR, textStatus, errorThrown) { function errorHandler(jqXHR, textStatus, errorThrown) {
if (console && console.log) { if (typeof console !== 'undefined' && console.log) {
console.log('AJAX error. status: ' + textStatus + ', message: ' + errorThrown); console.log('AJAX error. status: ' + textStatus + ', message: ' + errorThrown);
} }
phpbb.clearLoadingTimeout(); phpbb.clearLoadingTimeout();