Kunena / Kunena-Forum

Kunena Forum - Forum / Bulletin Board / Discussions component for Joomla - This is the 6.x/5.x main development branch. Please do not open issues regarding earlier versions of Kunena
https://www.kunena.org
GNU General Public License v3.0
1.75k stars 811 forks source link

Rendering Error in the history if the topic is not approved #9687

Closed rich20 closed 6 months ago

rich20 commented 6 months ago

Describe the bug https://www.kunena.org/forum/k-6-3-0-support/168431-forum-statistics-bug-return-value-must-be-of-type-array,-none-returned#231321 Confirmed

To Reproduce

  1. enable in the configuration - Frontend tab the history (it is default setting)
  2. define a category for review
  3. create as registered user a new topic
  4. go to this unapproved topic as administrator or moderator
  5. click on Edit
  6. scroll down to the history

Actual result Warning: Undefined variable $messages in .../components/com_kunena/src/Controller/Topic/Form/History/TopicFormHistoryDisplay.php on line 92

Rendering Error in layout Topic/Edit: array_keys(): Argument #1 ($array) must be of type array, null given in /...components/com_kunena/src/Controller/Topic/Form/History/TopicFormHistoryDisplay.php on line 92 Layout was rendered in .../components/com_kunena/template/aurelia/pages/topic/edit/default.php on line 44

System information

Desktop

Ruud68 commented 6 months ago

@rich20 can you give https://github.com/Kunena/Kunena-Forum/pull/9688 a try?

rich20 commented 6 months ago

Completed