Skip to content

Commit

Permalink
fix: handle wrong categories for open questions
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten committed Sep 1, 2023
1 parent 1db95a4 commit 7131c7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phpmyfaq/admin/record.questions.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@
</td>
<td>
<strong>
<?= Strings::htmlentities($category->categoryName[$openQuestion->getCategoryId()]['name']) ?>
<?= Strings::htmlentities($category->categoryName[$openQuestion->getCategoryId()]['name'] ?? '') ?>
</strong>
<br>
<?= Strings::htmlentities($openQuestion->getQuestion()) ?>
<?= Strings::htmlentities($openQuestion->getQuestion()) ?>
</td>
<td>
<a href="?action=question&amp;id=<?= $openQuestion->getId() ?>&amp;is_visible=toggle&csrf=<?= Token::getInstance()->getTokenString('toggle-question-visibility') ?>"
Expand Down

0 comments on commit 7131c7e

Please sign in to comment.