X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/b7e5c54593a6a0926474e181aa094edc8f97e456..cca912af4e57481707242ad05edaaa70c66dae96:/lib-php/admin/update.php diff --git a/lib-php/admin/update.php b/lib-php/admin/update.php index ea58f37c..3075070a 100644 --- a/lib-php/admin/update.php +++ b/lib-php/admin/update.php @@ -40,7 +40,9 @@ $oDB->connect(); $fPostgresVersion = $oDB->getPostgresVersion(); $aDSNInfo = Nominatim\DB::parseDSN(getSetting('DATABASE_DSN')); -if (!isset($aDSNInfo['port']) || !$aDSNInfo['port']) $aDSNInfo['port'] = 5432; +if (!isset($aDSNInfo['port']) || !$aDSNInfo['port']) { + $aDSNInfo['port'] = 5432; +} // cache memory to be used by osm2pgsql, should not be more than the available memory $iCacheMemory = (isset($aResult['osm2pgsql-cache'])?$aResult['osm2pgsql-cache']:2000);