Julio Montoya 15 년 전
부모
커밋
a5402c829c
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  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