aboutsummaryrefslogtreecommitdiff
path: root/app/views/course/forum/area/add.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/course/forum/area/add.php')
-rw-r--r--app/views/course/forum/area/add.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/course/forum/area/add.php b/app/views/course/forum/area/add.php
index 881c122..1449a5d 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">