Julio Montoya 15 years ago
parent
commit
a5402c829c
1 changed files with 3 additions and 1 deletions
  1. 3 1
      main/gradebook/lib/be/forumthreadlink.class.php

+ 3 - 1
main/gradebook/lib/be/forumthreadlink.class.php

@@ -148,7 +148,9 @@ class ForumThreadLink extends AbstractLink
 	    		if ($data=Database::fetch_array($scores)) {
 	    			return array ($data['qualify'], $assignment['thread_qualify_max']);    			
 	    		} else {
-	      			return null;  			
+	    			//We sent the 0/thread_qualify_max instead of null for correct calculations
+	      			//return null;
+	      			return array (0, $assignment['thread_qualify_max']);  			
 	    		}
 	    	} else {// all students -> get average
 	    		$students=array();  // user list, needed to make sure we only