|
@@ -18,8 +18,8 @@ if (!function_exists('build_select')) {
|
|
|
*/
|
|
|
function build_select($name, $options, $selected = [], $attr = [])
|
|
|
{
|
|
|
- $options = is_array($options) ? $options : explode(',', $options);
|
|
|
- $selected = is_array($selected) ? $selected : explode(',', $selected);
|
|
|
+ $options = is_array($options) ? $options : explode(',', $options ?? '');
|
|
|
+ $selected = is_array($selected) ? $selected : explode(',', $selected ?? '');
|
|
|
return Form::select($name, $options, $selected, $attr);
|
|
|
}
|
|
|
}
|