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