Skip to content

Commit 1a1af8f

Browse files
committed
fix: corrected return value
1 parent fb60c54 commit 1a1af8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phpmyfaq/src/phpMyFAQ/Category.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ public function getCategoriesFromFaq(int $faqId): array
581581
foreach ($rows as $id => $row) {
582582
$this->cache->addCategory($id, $row);
583583
}
584-
return $this->cache->getCategories();
584+
return $rows;
585585
}
586586

587587
public function create(CategoryEntity $categoryEntity): ?int

0 commit comments

Comments
 (0)