Skip to content

Commit e588178

Browse files
committed
fix search error
1 parent 4536104 commit e588178

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

files/lib/system/search/FaqQuestionSearch.class.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ public function cacheObjects(array $objectIDs, ?array $additionalData = null): v
3232
*/
3333
public function getObject(int $objectID): ?ISearchResultObject
3434
{
35-
return $this->faqCache[$objectID];
35+
if (isset($this->faqCache[$objectID])) {
36+
return $this->faqCache[$objectID];
37+
}
38+
39+
return null;
3640
}
3741

3842
/**

package.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<packagename language="de">Simple FAQ</packagename>
77
<packagedescription>A simple and powerful FAQ for your WSC.</packagedescription>
88
<packagedescription language="de">Ein simples und leistungsstarkes FAQ für Ihr WSC.</packagedescription>
9-
<version>2.1.3</version>
10-
<date>2024-08-10</date>
9+
<version>2.1.4</version>
10+
<date>2025-01-20</date>
1111
</packageinformation>
1212
<authorinformation>
1313
<author>Hanashi Development, Titus Kirch</author>
@@ -34,7 +34,7 @@
3434
<instruction type="templateListener"/>
3535
<instruction type="database" run="standalone">acp/database/install_dev.tkirch.wsc.faq.php</instruction>
3636
</instructions>
37-
<instructions type="update" fromversion="2.1.2">
37+
<instructions type="update" fromversion="2.1.3">
3838
<instruction type="file"/>
3939
</instructions>
4040
</package>

0 commit comments

Comments
 (0)