From 44eee019d9d216282960f9b38a2d24b9d0df3846 Mon Sep 17 00:00:00 2001 From: Brady Wetherington Date: Fri, 19 Feb 2021 10:19:24 -0800 Subject: [PATCH] Add variable declaration for $result (#9168) --- app/Models/CustomField.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Models/CustomField.php b/app/Models/CustomField.php index 93942596c5..5e311a583a 100644 --- a/app/Models/CustomField.php +++ b/app/Models/CustomField.php @@ -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')) {