]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib-php/admin/update.php
fix more missing braces on one-liners
[nominatim.git] / lib-php / admin / update.php
index ea58f37c44c433dbb9867827086c9f39af131592..3075070a3f404d64f6408e43111023f5e744eec5 100644 (file)
@@ -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);