From e891aa304193e274992d96a8bef01fd3f7ebe7e2 Mon Sep 17 00:00:00 2001 From: Brian Quinion Date: Thu, 7 Feb 2013 18:41:09 +0000 Subject: [PATCH] include the type (not just class) in the dedupe --- website/search.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/search.php b/website/search.php index be74cc9b..f9b58b1c 100755 --- a/website/search.php +++ b/website/search.php @@ -1519,10 +1519,10 @@ $bFirst = false; } if (!$bDeDupe || (!isset($aOSMIDDone[$aResult['osm_type'].$aResult['osm_id']]) - && !isset($aClassTypeNameDone[$aResult['osm_type'].$aResult['class'].$aResult['name']]))) + && !isset($aClassTypeNameDone[$aResult['osm_type'].$aResult['class'].$aResult['type'].$aResult['name']]))) { $aOSMIDDone[$aResult['osm_type'].$aResult['osm_id']] = true; - $aClassTypeNameDone[$aResult['osm_type'].$aResult['class'].$aResult['name']] = true; + $aClassTypeNameDone[$aResult['osm_type'].$aResult['class'].$aResult['type'].$aResult['name']] = true; $aSearchResults[] = $aResult; }