X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/106d960f84bac3da085d445f002538acdf6979c9..0192a7af96d32faf5dd319469d376bf4140dfcbb:/lib-php/lib.php diff --git a/lib-php/lib.php b/lib-php/lib.php index 69c29afa..3ba50dc0 100644 --- a/lib-php/lib.php +++ b/lib-php/lib.php @@ -1,4 +1,12 @@ $b['importance']?-1:1); + } return $a['foundorder'] <=> $b['foundorder']; } @@ -232,6 +229,8 @@ function closestHouseNumber($aRow) if (!function_exists('array_key_last')) { function array_key_last(array $array) { - if (!empty($array)) return key(array_slice($array, -1, 1, true)); + if (!empty($array)) { + return key(array_slice($array, -1, 1, true)); + } } }