aboutsummaryrefslogtreecommitdiff
path: root/app/views/course/forum/area/add.php
diff options
context:
space:
mode:
authorPhilipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de>2024-09-24 10:53:31 +0200
committerPhilipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de>2024-09-24 10:53:31 +0200
commit4459dd7917f4d1c34f40bb68f0e991e9c3d53e4c (patch)
tree5c07151ae61276d334e88f6309c30d439a85c12e /app/views/course/forum/area/add.php
parentda0022e5c1abbf9825ae76debaabdff7e8623bb4 (diff)
parent97a188592c679890a25c37ab78463add76a52ff7 (diff)
Merge branch 'main' into issue-3911issue-3911
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">