fixed wrong exception name

This commit is contained in:
Petr Skoda 2010-09-17 12:32:26 +00:00
parent c05260de32
commit 83f9b3d7b3

View File

@ -218,7 +218,7 @@ class enrol_mnet_mnetservice_enrol {
$user = $DB->get_record('user', array('username'=>$username, 'mnethostid'=>$client->id));
if ($user === false) {
throw new mnet_exception(5014, 'usernotfound', 'enrol_mnet');
throw new mnet_server_exception(5014, 'usernotfound', 'enrol_mnet');
}
if (! $course = $DB->get_record('course', array('id'=>$courseid))) {