From 77dc6d0b269075a56f764123ab6d23296b8aaa80 Mon Sep 17 00:00:00 2001 From: vyshane Date: Mon, 25 Sep 2006 05:12:01 +0000 Subject: [PATCH] Discussions from a forum of type 'single' should not be splittable. Merge from 1.6 branch. --- mod/forum/post.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mod/forum/post.php b/mod/forum/post.php index 812457a1e4..af28b03f0b 100644 --- a/mod/forum/post.php +++ b/mod/forum/post.php @@ -541,6 +541,9 @@ if (!$forum = get_record("forum", "id", $discussion->forum)) { error("The forum number was incorrect ($discussion->forum)"); } + if ($forum->type == 'single') { + error('Discussions from this forum cannot be split'); + } if (!$post->parent) { error('This is already the first post in the discussion'); } -- 2.39.5