]> git.openstreetmap.org Git - nominatim.git/commitdiff
Merge remote-tracking branch 'upstream/master'
authorSarah Hoffmann <lonvia@denofr.de>
Fri, 20 Jul 2018 21:30:32 +0000 (23:30 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Fri, 20 Jul 2018 21:30:32 +0000 (23:30 +0200)
lib/Geocode.php

index 598306235867e8afc7137241ef265f4353f321d9..1dd5a0e5ea3dd484d963d362959d2aafeae369c1 100644 (file)
@@ -149,6 +149,10 @@ class Geocode
 
     private function viewboxImportanceFactor($fX, $fY)
     {
+        if (!$this->aViewBox) {
+            return 1;
+        }
+
         $fWidth = ($this->aViewBox[2] - $this->aViewBox[0])/2;
         $fHeight = ($this->aViewBox[3] - $this->aViewBox[1])/2;