Merge acb262cc75
into 9fc9d18c7a
This commit is contained in:
commit
1505de5875
|
@ -105,9 +105,9 @@ trait AttributesHTML
|
|||
|
||||
$attributes = (array) $attributes;
|
||||
|
||||
$attributes = array_filter($attributes ?? [], function ($v) {
|
||||
return ($v || $v === 0 || $v === '0');
|
||||
});
|
||||
$attributes = array_filter($attributes ?? [], function ($v, $k) {
|
||||
return ($k == 'alt' || $v || $v === 0 || $v === '0');
|
||||
}, ARRAY_FILTER_USE_BOTH);
|
||||
|
||||
if ($exclude) {
|
||||
$attributes = array_diff_key(
|
||||
|
|
Loading…
Reference in New Issue