From 9418d54c8ee1f790d1966952318a787e329dff11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Sessing=C3=B8?= Date: Thu, 24 Nov 2016 09:56:21 +0100 Subject: [PATCH] No need to return getValue as it will be returned on render. --- src/Pecee/Http/Input/Input.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Pecee/Http/Input/Input.php b/src/Pecee/Http/Input/Input.php index 810bb6c..db8ce21 100644 --- a/src/Pecee/Http/Input/Input.php +++ b/src/Pecee/Http/Input/Input.php @@ -188,7 +188,7 @@ class Input return $item; } - return (!is_array($item->getValue()) && trim($item->getValue()) === '') ? $default : $item->getValue(); + return (!is_array($item->getValue()) && trim($item->getValue()) === '') ? $default : $item; } return $default;