Fix Parser\BBCode page

This commit is contained in:
Visman 2023-05-21 21:33:21 +07:00
parent f34fe01f07
commit ecded3baed

View file

@ -666,11 +666,11 @@ class BBCode extends Parser
/**
* Формирует данные для формы
*/
protected function formEditSub(?array $data, string $name, string $class, string|array $legend, string|array $info): array
protected function formEditSub(mixed $data, string $name, string $class, string|array $legend, string|array $info): array
{
$yn = [1 => __('Yes'), 0 => __('No')];
$fields = [];
$other = \str_ends_with($name, '_attr');
$other = ! \str_ends_with($name, '_attr');
$key = $other ? "other_attrs[{$name}]" : $name;
if ('new_attr' === $name) {