Skip to content

Commit

Permalink
Fix for undefined error is value is empty in autofill.
Browse files Browse the repository at this point in the history
  • Loading branch information
cheesegrits committed Mar 7, 2017
1 parent 234f3db commit a205651
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/fabrik_form/autofill/autofill.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public function onajax_getAutoFill()
}
}

$testEmpty = (array) $data;
$testEmpty = isset($data) ? (array) $data : array();

if (empty($testEmpty))
{
Expand Down

0 comments on commit a205651

Please sign in to comment.