fix: various notice fixes (#3718)

This commit is contained in:
Dag 2023-09-29 19:17:03 +02:00 committed by GitHub
parent b9ec6a0eb4
commit 2172df9fa2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 27 additions and 5 deletions

View file

@ -244,7 +244,7 @@ HTML,
if ($this->getInput('tagged')) {
$types[] = 'Tags';
}
$typesText = $types[0];
$typesText = $types[0] ?? '';
if (count($types) > 1) {
for ($i = 1; $i < count($types) - 1; $i++) {
$typesText .= ', ' . $types[$i];