mirror of
https://github.com/snipe/snipe-it.git
synced 2024-09-20 07:47:41 -07:00
Add variable declaration for $result (#9168)
This commit is contained in:
parent
a5731a3088
commit
44eee019d9
|
@ -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')) {
|
||||
|
|
Loading…
Reference in a new issue