No need to return getValue as it will be returned on render.

This commit is contained in:
Simon Sessingø
2016-11-24 09:56:21 +01:00
parent e4ab14a2cb
commit 9418d54c8e

View File

@@ -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;