forked from hans/Nominatim
replace PHP sizeof() with either count() or empty()
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
$aFilteredPlaces = array();
|
||||
|
||||
if (!sizeof($aPlace)) {
|
||||
if (empty($aPlace)) {
|
||||
if (isset($sError))
|
||||
$aFilteredPlaces['error'] = $sError;
|
||||
else $aFilteredPlaces['error'] = 'Unable to geocode';
|
||||
|
||||
Reference in New Issue
Block a user