Permalink
Browse files

Added default argument value for grade_category_select() to prevent e…

…rror when calling without arguments
  • Loading branch information...
patrickslee
patrickslee committed Oct 26, 2005
1 parent 5ed1a6d commit 88fb90e9b47ad29b3109169e51594c0a90ebe305
Showing with 1 addition and 1 deletion.
  1. +1 −1 grade/lib.php
View
@@ -2490,7 +2490,7 @@ function grade_insert_category() {
}
}
-function grade_category_select($id_selected) {
+function grade_category_select($id_selected = 0) {
/// prints out a select box containing categories.
global $CFG;
global $course;

0 comments on commit 88fb90e

Please sign in to comment.