From: Datendelphin Date: Sat, 5 May 2012 08:56:31 +0000 (+0200) Subject: eliminate php warning, remove setting aPipes (isn't used) X-Git-Tag: v2.0.0~61^2~4 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/8be76da62920a36f11ebf65ca5db2b090745d2a5?ds=sidebyside;hp=--cc eliminate php warning, remove setting aPipes (isn't used) --- 8be76da62920a36f11ebf65ca5db2b090745d2a5 diff --git a/utils/update.php b/utils/update.php index e26a9538..a3b361b1 100755 --- a/utils/update.php +++ b/utils/update.php @@ -154,7 +154,7 @@ { // derive change from normal osm file with osmosis $sTemporaryFile = CONST_BasePath.'/data/osmosischange.osc'; - if ($aResult['import-file']) + if (isset($aResult['import-file']) && $aResult['import-file']) { $sCMD = CONST_Osmosis_Binary.' --read-xml \''.$aResult['import-file'].'\' --read-empty --derive-change --write-xml-change '.$sTemporaryFile; echo $sCMD."\n"; @@ -198,7 +198,6 @@ } // import generated change file - $aPipes = array(); $sCMD = CONST_Osm2pgsql_Binary.' -klas -C 2000 -O gazetteer -d '.$aDSNInfo['database'].' '.$sTemporaryFile; echo $sCMD."\n"; exec($sCMD, $sJunk, $iErrorLevel);