]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/ParameterParser.php
better performance
[nominatim.git] / lib / ParameterParser.php
index c9a97c25c5f6b0f29f0e9cb3b139b32e8f9d2841..26b648bb2865165d8b9ee897263b2ebed17016f1 100644 (file)
@@ -99,7 +99,7 @@ class ParameterParser
                 arsort($aLanguages);
             }
         }
-        if (!sizeof($aLanguages) && CONST_Default_Language) {
+        if (empty($aLanguages) && CONST_Default_Language) {
             $aLanguages[CONST_Default_Language] = 1;
         }