]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib-php/lib.php
always use brackets on if statements
[nominatim.git] / lib-php / lib.php
index 69c29afac76a7acd15a80c68b7c068916fed1b03..a52610507294bf5529f072db971af2d83b14a55d 100644 (file)
@@ -45,7 +45,9 @@ function getSettingConfig($sConfName, $sSystemConfig)
 
 function fail($sError, $sUserError = false)
 {
-    if (!$sUserError) $sUserError = $sError;
+    if (!$sUserError) {
+        $sUserError = $sError;
+    }
     error_log('ERROR: '.$sError);
     var_dump($sUserError);
     echo "\n";
@@ -96,8 +98,9 @@ function getDatabaseDate(&$oDB)
 
 function byImportance($a, $b)
 {
-    if ($a['importance'] != $b['importance'])
+    if ($a['importance'] != $b['importance']) {
         return ($a['importance'] > $b['importance']?-1:1);
+    }
 
     return $a['foundorder'] <=> $b['foundorder'];
 }