From 9c585d31b5f055a4150ce55adbcb3c3a4a863292 Mon Sep 17 00:00:00 2001 From: fescen9 Date: Sat, 11 Dec 2010 23:24:29 +0000 Subject: [PATCH] Don't add spans to p[0] unless there are 5 items in the array. Otherwise it breaks the lastSeen/imgSubstr functionality. --- web/map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/map.js b/web/map.js index 0c30fcfc..20d4a718 100644 --- a/web/map.js +++ b/web/map.js @@ -585,7 +585,7 @@ function makeRequest(url, func, type, fail, post, contenttype) if(p[0] == '') continue; // Hack to keep duplicate markers from conflicting with eachother - if (p[1] != 'player') { + if (p[1] != 'player' && p.length == 5) { p[0] = p[0] + '' + p[1] + ''; }