diff --git a/public/src/forum/accountedit.js b/public/src/forum/accountedit.js index 858ef06bad..7ec546521c 100644 --- a/public/src/forum/accountedit.js +++ b/public/src/forum/accountedit.js @@ -43,7 +43,11 @@ define(['forum/accountheader', 'uploader'], function(header, uploader) { function getSignatureCharsLeft() { - return '(' + $('#inputSignature').val().length + '/' + config.maximumSignatureLength + ')'; + if($('#inputSignature').length) { + return '(' + $('#inputSignature').val().length + '/' + config.maximumSignatureLength + ')'; + } else { + return ''; + } } $('#signatureCharCountLeft').html(getSignatureCharsLeft());