ParameterParser: getInt with empty string value throws exception

This commit is contained in:
marc tobias
2018-03-06 13:33:19 +01:00
parent d9cd8c6fff
commit 123a3c0347
2 changed files with 11 additions and 11 deletions

View File

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