]> git.openstreetmap.org Git - nominatim.git/commitdiff
fix omitted initialization
authorEric Stadtherr <estadtherr@caci.com>
Sun, 22 Jul 2018 03:53:41 +0000 (21:53 -0600)
committerEric Stadtherr <estadtherr@caci.com>
Sun, 22 Jul 2018 03:53:41 +0000 (21:53 -0600)
utils/setup.php

index b71e07e0b8c49628603f3234053d3b8953d12778..1b4a345f0c28748c276a64ca28f2b80a1a4ed382 100755 (executable)
@@ -953,6 +953,8 @@ function checkModulePresence()
     $sSQL = "CREATE FUNCTION nominatim_test_import_func(text) RETURNS text AS '";
     $sSQL .= $sModulePath."/nominatim.so', 'transliteration' LANGUAGE c IMMUTABLE STRICT";
     $sSQL .= ';DROP FUNCTION nominatim_test_import_func(text);';
+
+    $oDB =& getDB();
     $oResult = $oDB->query($sSQL);
 
     $bResult = true;