mirror of
https://github.com/moodle/moodle.git
synced 2025-02-01 13:28:17 +01:00
Merged recent fix from stable
This commit is contained in:
parent
ba9d68c4c3
commit
29ad118c2f
@ -179,10 +179,10 @@
|
||||
} else if (isset($reply)) { // User is writing a new reply
|
||||
|
||||
if (! $parent = forum_get_post_full($reply)) {
|
||||
error("Parent post ID was incorrect ($reply)");
|
||||
error("Parent post ID was incorrect");
|
||||
}
|
||||
if (! $discussion = get_record("forum_discussions", "id", $parent->discussion)) {
|
||||
error("This post is not part of a discussion! ($reply)");
|
||||
error("This post is not part of a discussion!");
|
||||
}
|
||||
if (! $forum = get_record("forum", "id", $discussion->forum)) {
|
||||
error("The forum number was incorrect ($discussion->forum)");
|
||||
|
Loading…
x
Reference in New Issue
Block a user