show class instead of yes in html search output

This commit is contained in:
Sarah Hoffmann
2015-01-27 22:22:26 +01:00
parent c798577f70
commit fbc5ba13f8
2 changed files with 4 additions and 2 deletions

View File

@@ -204,6 +204,8 @@ target="_blank">FAQ</a></td>
echo ' <span class="place_id">'.$aResult['place_id'].'</span>';
if (isset($aResult['label']))
echo ' <span class="type">('.$aResult['label'].')</span>';
else if ($aResult['type'] == 'yes')
echo ' <span class="type">('.ucwords(str_replace('_',' ',$aResult['class'])).')</span>';
else
echo ' <span class="type">('.ucwords(str_replace('_',' ',$aResult['type'])).')</span>';
echo ' <span class="details">(<a href="details.php?place_id='.$aResult['place_id'].'">details</a>)</span>';