diff --git a/js/console.js b/js/console.js index 79aedb448e..ad5893bd4e 100644 --- a/js/console.js +++ b/js/console.js @@ -1235,7 +1235,7 @@ PMA_consoleDebug = { functionName += dbgStep.type; } functionName += dbgStep.function; - if (dbgStep.args.length) { + if (dbgStep.args && dbgStep.args.length) { functionName += '(...)'; } else { functionName += '()'; @@ -1303,7 +1303,7 @@ PMA_consoleDebug = { .append( $('').text(this._formatFileName(step)) ); - if (step.args.length) { + if (step.args && step.args.length) { $stepElem .append( $('').html(this._formatFunctionArgs(step))