Node.js based forum software built for the modern web
closes #3448
psychobunny4b0f50f57e79
diff --git a/public/src/utils.js b/public/src/utils.jsindex 66ee10f6cf..4b3b4464fc 100644--- a/public/src/utils.js+++ b/public/src/utils.js@@ -206,9 +206,13 @@overrideTimeago: function() {var timeagoFn = $.fn.timeago;$.fn.timeago = function() {- timeagoFn.apply(this, arguments).each(function() {- $(this).attr('title', (new Date($(this).attr('title'))).toString());- });+ var els = timeagoFn.apply(this, arguments);++ if (els) {+ els.each(function() {+ $(this).attr('title', (new Date($(this).attr('title'))).toString());+ });+ }};},