Merged fixes from MDL-13476

This commit is contained in:
moodler 2008-02-15 00:51:44 +00:00
parent 42af26a396
commit a5f77de6b9

View File

@ -44,7 +44,7 @@
/// move discussion if requested
if ($move > 0 and confirm_sesskey()) {
$return = $CFG->wwwroot.'/mod/forum/discussion.php?d='.$discussion->id;
$return = $CFG->wwwroot.'/mod/forum/discuss.php?d='.$discussion->id;
require_capability('mod/forum:movediscussions', $modcontext);
@ -52,7 +52,7 @@
error('Cannot move discussion from a simple single discussion forum', $return);
}
if ($forumto = get_record('forum', 'id', $move)) {
if (!$forumto = get_record('forum', 'id', $move)) {
error('You can\'t move to that forum - it doesn\'t exist!', $return);
}