Skip to content

A free open source IT asset/license management system

Add variable declaration for $result (#9168)

Brady Wetherington44eee019d9d2
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')) {