correctly handle comma-only exclude_place_ids

This commit is contained in:
Sarah Hoffmann
2015-03-29 18:17:52 +02:00
parent 59be7846e9
commit eb1d8894b9
3 changed files with 17 additions and 2 deletions

View File

@@ -222,9 +222,12 @@
foreach(explode(',',$aParams['exclude_place_ids']) as $iExcludedPlaceID)
{
$iExcludedPlaceID = (int)$iExcludedPlaceID;
if ($iExcludedPlaceID) $aExcludePlaceIDs[$iExcludedPlaceID] = $iExcludedPlaceID;
if ($iExcludedPlaceID)
$aExcludePlaceIDs[$iExcludedPlaceID] = $iExcludedPlaceID;
}
$this->aExcludePlaceIDs = $aExcludePlaceIDs;
if (isset($aExcludePlaceIDs))
$this->aExcludePlaceIDs = $aExcludePlaceIDs;
}
// Only certain ranks of feature