diff --git a/app/views/course/forum/area/add.php b/app/views/course/forum/area/add.php
index 881c1220fd0618200f577c0af0f817c7ce18195c..1449a5d698e51655d5f4065e6bf8dcad3ad1b708 100644
--- a/app/views/course/forum/area/add.php
+++ b/app/views/course/forum/area/add.php
@@ -7,7 +7,7 @@
         <? else : ?>
             <? $num_postings = ForumVisit::getCount($entry['topic_id'], $visitdate) ?>
             <?= Icon::create('forum', $num_postings > 0 ? Icon::ROLE_ATTENTION : Icon::ROLE_INFO)->asImg([
-                'title' => ForumHelpers::getVisitText($num_postings, $entry['topic_id'], $constraint['depth']),
+                'title' => ForumHelpers::getVisitText($num_postings, $entry['topic_id']),
             ]) ?>
         <? endif ?>
     </td>
@@ -36,7 +36,7 @@
     </td>
 
     <td class="postings">
-        <?= number_format(max($entry['num_postings'] - 1, 0), 0, ',', '.') ?>
+        <?= number_format(max(($entry['num_postings'] ?? 0) - 1, 0), 0, ',', '.') ?>
     </td>
 
     <td class="answer hidden-tiny-down">
diff --git a/app/views/course/forum/index/_last_post.php b/app/views/course/forum/index/_last_post.php
index 3532d40e855c83d99d161c8a3bef234cc52e85c4..b5d854a82d44f8588ff306cd1d95f7b0061d8610 100644
--- a/app/views/course/forum/index/_last_post.php
+++ b/app/views/course/forum/index/_last_post.php
@@ -1,4 +1,4 @@
-<? if (is_array($entry['last_posting']) && count($entry['last_posting'])) : ?>
+<? if (!empty($entry['last_posting']) && is_array($entry['last_posting'])) : ?>
     <?= _('von') ?>
     <? if (!empty($entry['last_posting']['anonymous'])): ?>
         <?= _('Anonym') ?>
diff --git a/lib/classes/ForumActivity.php b/lib/classes/ForumActivity.php
index bc00cf19313ee20fdd1ea2183a97441388679ad6..a6a685d464618eddfa73911a64e11ee8adec0ca5 100644
--- a/lib/classes/ForumActivity.php
+++ b/lib/classes/ForumActivity.php
@@ -124,7 +124,7 @@ class ForumActivity
             'mkdate'       => $post['mkdate'] ?? time()
         ];
 
-        if ($post['anonymous']) {
+        if (!empty($post['anonymous'])) {
             $data['actor_type'] = 'anonymous';
             $data['actor_id']   = '';
         }