ParameterParser: getFloat with empty string value throws exception

This commit is contained in:
marc tobias
2018-03-06 13:35:27 +01:00
parent 123a3c0347
commit 47258f40ea
2 changed files with 9 additions and 6 deletions

View File

@@ -36,7 +36,7 @@ class ParameterParser
public function getFloat($sName, $bDefault = false)
{
if (!isset($this->aParams[$sName]) || strlen($this->aParams[$sName]) == 0) {
if (!isset($this->aParams[$sName])) {
return $bDefault;
}