X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/27af9b102c2d6167b9025d594f8cb75e4dd76a03..85a68f1e56a42e7d6778b12b45716f0e26932766:/lib-php/cmd.php?ds=sidebyside diff --git a/lib-php/cmd.php b/lib-php/cmd.php index 07000478..6f1299dd 100644 --- a/lib-php/cmd.php +++ b/lib-php/cmd.php @@ -1,4 +1,12 @@ $aLine[3]) { - showUsage($aSpec, $bExitOnError, 'Option \''.$aLine[0].'\' is pressent too many times'); + showUsage($aSpec, $bExitOnError, 'Option \''.$aLine[0].'\' is present too many times'); } - switch ($aLine[6]) { - case 'bool': - if (!array_key_exists($aLine[0], $aResult)) { - $aResult[$aLine[0]] = false; - } - break; + if ($aLine[6] == 'bool' && !array_key_exists($aLine[0], $aResult)) { + $aResult[$aLine[0]] = false; } } }