Forums of type 'single' should not be splittable. Added check for this.

This commit is contained in:
vyshane
2006-09-25 05:08:38 +00:00
parent 1762e9204c
commit 4fbf8bd7b3
+3
View File
@@ -614,6 +614,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 (!isteacher($forum->course)) {
error("You can't split discussions!");
}