From c922ade636e12a5363a7dc294fddd22188bac11b Mon Sep 17 00:00:00 2001 From: fkloft Date: Sat, 4 Jul 2015 16:30:24 +0200 Subject: [PATCH] Fix for portal search --- code/search.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/search.js b/code/search.js index ca446fb6..120ce055 100644 --- a/code/search.js +++ b/code/search.js @@ -225,6 +225,8 @@ addHook('search', function(query) { $.each(portals, function(guid, portal) { var data = portal.options.data; + if(!data.title) return; + if(data.title.toLowerCase().indexOf(term) !== -1) { var team = portal.options.team; var color = team==TEAM_NONE ? '#CCC' : COLORS[team];