Fix handling of self-closing tag

self closing tag <categorytree/> is invalid, but where encountered
the content of the tag is null.

Convert the null to empty string since CategoryTree::getTag require one

Bug: T378765
Change-Id: Iede4499952295b75a19bd05a5963caab00a9cadd
(cherry picked from commit a925bb10cd)
This commit is contained in:
Ammarpad 2024-11-01 12:31:12 +01:00 committed by Fomafix
parent bb36ea0527
commit 58f15e7717

View file

@ -231,7 +231,7 @@ class Hooks implements
}
return $message .
$ct->getTag( $cat, $hideroot, $attr, $depth );
$ct->getTag( $cat ?? '', $hideroot, $attr, $depth );
}
/**