]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib-php/migration/PhraseSettingsToJson.php
factor out check if a token fits current search
[nominatim.git] / lib-php / migration / PhraseSettingsToJson.php
index 15c49f0aa0094fa87bf452eed9eb5b9463e78714..ac6e62136a3733f94303a7324a4a1971a49fc19a 100644 (file)
@@ -8,10 +8,12 @@ if (file_exists($phpPhraseSettingsFile) && !file_exists($jsonPhraseSettingsFile)
 
     $data = array();
 
-    if (isset($aTagsBlacklist))
+    if (isset($aTagsBlacklist)) {
         $data['blackList'] = $aTagsBlacklist;
-    if (isset($aTagsWhitelist))
+    }
+    if (isset($aTagsWhitelist)) {
         $data['whiteList'] = $aTagsWhitelist;
+    }
 
     $jsonFile = fopen($jsonPhraseSettingsFile, 'w');
     fwrite($jsonFile, json_encode($data));