diff --git a/src/Pecee/Http/Input/Input.php b/src/Pecee/Http/Input/Input.php index 475b19c..db45b00 100644 --- a/src/Pecee/Http/Input/Input.php +++ b/src/Pecee/Http/Input/Input.php @@ -89,7 +89,7 @@ class Input { return ($key !== null && isset($item->getValue()[$key])) ? $item->getValue()[$key] : $item->getValue(); } - return ($item->getValue() === null) ? $default : $item->getValue(); + return (trim($item->getValue()) === '') ? $default : $item->getValue(); } return $default;