diff --git a/imcger/recenttopicsng/composer.json b/imcger/recenttopicsng/composer.json index f70e690..82654f4 100644 --- a/imcger/recenttopicsng/composer.json +++ b/imcger/recenttopicsng/composer.json @@ -3,8 +3,8 @@ "type": "phpbb-extension", "description": "Adds a list with a number of recent topics to the board index.", "homepage": "https://github.com/IMC-GER/RecentTopicsNG", - "version": "1.0.0", - "time": "2025-06-11", + "version": "1.0.1", + "time": "2025-09-27", "license": "GPL-2.0-only", "authors": [ { diff --git a/imcger/recenttopicsng/core/rtng_functions.php b/imcger/recenttopicsng/core/rtng_functions.php index 49a19ed..d796b64 100644 --- a/imcger/recenttopicsng/core/rtng_functions.php +++ b/imcger/recenttopicsng/core/rtng_functions.php @@ -280,6 +280,10 @@ private function getforumlist(): array return array_unique($forum_ids); } + else + { + return []; + } } /** @@ -546,7 +550,7 @@ private function fill_template(array $icons, string $tpl_loopname, array $topic_ if ($this->user_setting['user_rtng_unread_only']) { topic_status($row, $replies, true, $folder_img, $folder_alt, $topic_type); - $unread_topic = ($this->user->data['user_id'] != ANONYMOUS) ?? false; + $unread_topic = $this->user->data['user_id'] != ANONYMOUS; } else { diff --git a/imcger/recenttopicsng/docs/CHANGELOG.md b/imcger/recenttopicsng/docs/CHANGELOG.md index f725d68..68854ec 100644 --- a/imcger/recenttopicsng/docs/CHANGELOG.md +++ b/imcger/recenttopicsng/docs/CHANGELOG.md @@ -1,6 +1,10 @@ -## Changelog Recent Topics NG V1.0.0 +## Changelog Recent Topics NG V1.0.1 This is a non-exhaustive (but still near complete) changelog for Recent Topics NG 1.x including release candidate versions. +#### Changes since V1.0.0 (27/09/2025) + - [Change] Removed unnecessary NCO. + - [Fixed] Ensured that the correct variable type is always returned. + #### Changes since V1.0.0-rc1 (11/06/2025) - [Change] The PHP code has been updated to include data types for the variables. - [Change] The minimum version of PHP has been changed to 7.4.