Skip to content

Commit

Permalink
Fix #8
Browse files Browse the repository at this point in the history
  • Loading branch information
richardhj committed Mar 9, 2022
1 parent 21cc81d commit ed6f186
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EventListener/DataContainer/SaveClasses.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,6 @@ public function onLoadCallback($value, $dc): array

$options = array_unique(array_merge(...$options));

return array_values(array_filter($options, static fn ($option) => 1 === preg_match(sprintf('/(^|\s)(%s)(\s|$)/', preg_quote($option)), $dc->activeRecord->toolbox_classes)));
return array_values(array_filter($options, static fn ($option) => 1 === preg_match(sprintf('/(^|\s)(%s)(\s|$)/', preg_quote($option)), $dc->activeRecord->toolbox_classes ?? '')));
}
}

0 comments on commit ed6f186

Please sign in to comment.