forked from hans/Nominatim
replace PHP sizeof() with either count() or empty()
This commit is contained in:
@@ -199,7 +199,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
if (sizeof($aParentOfLines))
|
||||
if (!empty($aParentOfLines))
|
||||
{
|
||||
headline('Parent Of');
|
||||
|
||||
@@ -223,7 +223,7 @@
|
||||
_one_row($aAddressLine);
|
||||
}
|
||||
}
|
||||
if (sizeof($aParentOfLines) >= 500) {
|
||||
if (count($aParentOfLines) >= 500) {
|
||||
echo '<p>There are more child objects which are not shown.</p>';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user