Skip to content

Commit 1b9a9fb

Browse files
bogdankharchenkoinxilpro
authored andcommitted
handle empty strings (#8)
1 parent a22f9b9 commit 1b9a9fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Elements/Form.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public function hasBoundData() : bool
159159
*/
160160
public function getBoundValue($name, $default = null)
161161
{
162-
if (null === $name) {
162+
if (empty($name)) {
163163
return value($default);
164164
}
165165

0 commit comments

Comments
 (0)