]> 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)
1  2 
lib/Geocode.php

diff --combined lib/Geocode.php
index 598306235867e8afc7137241ef265f4353f321d9,f0e03de5f3e75c1b8e4b81ba458963c94b8828b9..1dd5a0e5ea3dd484d963d362959d2aafeae369c1
@@@ -18,7 -18,7 +18,7 @@@ class Geocod
      protected $aLangPrefOrder = array();
  
      protected $aExcludePlaceIDs = array();
 -    protected $bReverseInPlan = false;
 +    protected $bReverseInPlan = true;
  
      protected $iLimit = 20;
      protected $iFinalLimit = 10;
  
      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;