forked from hans/Nominatim
replace PHP sizeof() with either count() or empty()
This commit is contained in:
@@ -41,7 +41,7 @@ if ($sOsmType && $iOsmId > 0) {
|
||||
|
||||
if ($oLookup) {
|
||||
$aPlaces = $oPlaceLookup->lookup(array($oLookup->iId => $oLookup));
|
||||
if (sizeof($aPlaces)) {
|
||||
if (!empty($aPlaces)) {
|
||||
$aPlace = reset($aPlaces);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user