fixed error message

This commit is contained in:
skodak
2006-09-16 12:02:02 +00:00
parent 14e7869268
commit 80f435af43
+1 -1
View File
@@ -319,7 +319,7 @@ if ($um->preprocess_files() && confirm_sesskey()) {
if (isset($addrole[$i])) {
$coursecontext = get_context_instance(CONTEXT_COURSE, $course[$i]->id);
if (!user_can_assign($coursecontext, $addrole[$i])) {
notify('--> Can not eroll into course'); //TODO: localize
notify('--> Can not assign role in course'); //TODO: localize
}
$ret = role_assign($addrole[$i], $user->id, 0, $coursecontext->id);
} else if (isset($addtype[$i])) {