Skip to content

Commit

Permalink
fix search error
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanashi committed Jan 20, 2025
1 parent 4536104 commit e588178
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion files/lib/system/search/FaqQuestionSearch.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ public function cacheObjects(array $objectIDs, ?array $additionalData = null): v
*/
public function getObject(int $objectID): ?ISearchResultObject
{
return $this->faqCache[$objectID];
if (isset($this->faqCache[$objectID])) {
return $this->faqCache[$objectID];
}

return null;
}

/**
Expand Down
6 changes: 3 additions & 3 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.1.3</version>
<date>2024-08-10</date>
<version>2.1.4</version>
<date>2025-01-20</date>
</packageinformation>
<authorinformation>
<author>Hanashi Development, Titus Kirch</author>
Expand All @@ -34,7 +34,7 @@
<instruction type="templateListener"/>
<instruction type="database" run="standalone">acp/database/install_dev.tkirch.wsc.faq.php</instruction>
</instructions>
<instructions type="update" fromversion="2.1.2">
<instructions type="update" fromversion="2.1.3">
<instruction type="file"/>
</instructions>
</package>

0 comments on commit e588178

Please sign in to comment.