Skip to content

Commit

Permalink
fix null description
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanashi committed Nov 7, 2024
1 parent f660bc0 commit a9c46b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion files/lib/data/faq/category/FaqCategory.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function getLink(): string

public function getDescription(): string
{
return WCF::getLanguage()->get($this->description);
return WCF::getLanguage()->get($this->description ?? '');
}

public function getDescriptionHtml(): string
Expand Down
8 changes: 3 additions & 5 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<packagename language="de">Simple FAQ</packagename>
<packagedescription>A simple and powerful FAQ for your WSC.</packagedescription>
<packagedescription language="de">Ein simples und leistungsstarkes FAQ für Ihr WSC.</packagedescription>
<version>2.2.5</version>
<date>2024-11-03</date>
<version>2.2.6</version>
<date>2024-11-07</date>
</packageinformation>
<authorinformation>
<author>Hanashi Development, Titus Kirch</author>
Expand Down Expand Up @@ -36,10 +36,8 @@
<instruction type="templateListener"/>
<instruction type="database" run="standalone">acp/database/install_dev.tkirch.wsc.faq.php</instruction>
</instructions>
<instructions type="update" fromversion="2.2.4">
<instructions type="update" fromversion="2.2.5">
<instruction type="file"/>
<instruction type="acpTemplate"/>
<instruction type="template"/>
</instructions>
<instructions type="update" fromversion="2.1.*">
<instruction type="file"/>
Expand Down

0 comments on commit a9c46b4

Please sign in to comment.