From 23c628363aa0a7f44b5e869551b2bbcacad3e96c Mon Sep 17 00:00:00 2001 From: RaNaN <Mast3rRaNaN@hotmail.de> Date: Sat, 18 Jan 2014 22:27:32 +0100 Subject: basically working multi-user mode --- pyload/web/app/scripts/helpers/truncate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pyload/web/app') diff --git a/pyload/web/app/scripts/helpers/truncate.js b/pyload/web/app/scripts/helpers/truncate.js index 861588452..42991ef94 100644 --- a/pyload/web/app/scripts/helpers/truncate.js +++ b/pyload/web/app/scripts/helpers/truncate.js @@ -6,7 +6,7 @@ define(['underscore','handlebars'], function(_, Handlebars) { if (_.isNumber(options)) strLen = options; - if (fullStr.length <= strLen) return fullStr; + if (!fullStr || fullStr.length <= strLen) return fullStr; var separator = options.separator || '…'; -- cgit v1.2.3