"MDL-14129, fix print_error"

This commit is contained in:
dongsheng
2008-05-15 03:07:21 +00:00
parent 675ab27eef
commit e49ef64a2e
6 changed files with 42 additions and 43 deletions
+2 -2
View File
@@ -66,11 +66,11 @@ class editorObject {
// If args is an array search keys courseid and name.
// Name represents editor name to load.
if ( !array_key_exists('courseid', $args) ) {
print_error("Required variable courseid is missing!");
print_error('invalidcourseid');
}
if ( !array_key_exists('name', $args) ) {
print_error("Required variable name is missing!");
print_error('missingvarname');
}
$courseid = clean_param($args['courseid'], PARAM_INT);