]> git.openstreetmap.org Git - nominatim.git/commitdiff
with PHP7 the result of new() can no longer be assigned by reference
authorChristian von Roques <roques@mti.ag>
Sun, 2 Apr 2017 16:03:17 +0000 (18:03 +0200)
committerChristian von Roques <roques@mti.ag>
Sat, 15 Apr 2017 17:12:25 +0000 (19:12 +0200)
utils/warm.php

index 5743dbd5211955e933b0c55148ca1ff574764d38..68fa751ca6d1d10a01a6ce646eaa30ea2692b3d8 100755 (executable)
@@ -53,7 +53,7 @@ if (!$aResult['search-only']) {
 }
 
 if (!$aResult['reverse-only']) {
-    $oGeocode =& new Nominatim\Geocode($oDB);
+    $oGeocode = new Nominatim\Geocode($oDB);
 
     echo "Warm search: ";
     if ($bVerbose) echo "\n";