Fixing OU report issues

This commit is contained in:
nicolasconnault 2007-09-25 19:32:29 +00:00
parent f22bc9dbcb
commit d32100a522
3 changed files with 13 additions and 2 deletions

View file

@ -533,7 +533,7 @@ class grade_item extends grade_object {
* Returns the hidden state of this grade_item
* @return boolean hidden state
*/
function is_hidden($userid=NULL) {
function is_hidden() {
return ($this->hidden == 1 or ($this->hidden != 0 and $this->hidden > time()));
}