Add variable declaration for $result (#9168)

This commit is contained in:
Brady Wetherington 2021-02-19 10:19:24 -08:00 committed by GitHub
parent a5731a3088
commit 44eee019d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -285,6 +285,7 @@ class CustomField extends Model
*/
public function formatFieldValuesAsArray()
{
$result = [];
$arr = preg_split("/\\r\\n|\\r|\\n/", $this->field_values);
if (($this->element!='checkbox') && ($this->element!='radio')) {