MantisBT - ATutor
View Issue Details
0004204ATutor- no cat -public2010-04-13 08:332010-05-02 15:24
greg 
cindy 
normalminoralways
closedfixed 
 
1.6.4 
1.6.4
0004204: enrollment errors with no student
when viewing the enrolment manager as an instructor, when there are no students enrolled, mysql errors appear

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /webserver/content/atutor.ca/docs/atutor/ATutor/include/vitals.inc.php on line 1233

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /webserver/content/atutor.ca/docs/atutor/ATutor/include/html/enrollment.inc.php on line 207

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /webserver/content/atutor.ca/docs/atutor/ATutor/include/html/enrollment.inc.php on line 207

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /webserver/content/atutor.ca/docs/atutor/ATutor/include/html/enrollment.inc.php on line 207

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /webserver/content/atutor.ca/docs/atutor/ATutor/include/html/enrollment.inc.php on line 207
No tags attached.
Issue History
2010-04-13 08:33gregNew Issue
2010-04-13 08:33gregAffects version => SVN
2010-04-13 09:01cindyStatusnew => resolved
2010-04-13 09:01cindyFixed in Version => 1.6.4
2010-04-13 09:01cindyResolutionopen => fixed
2010-04-13 09:01cindyAssigned To => cindy
2010-04-13 09:01cindyNote Added: 0004135
2010-04-13 09:32cindyAffects versionSVN => 1.6.4
2010-04-13 09:32cindyStatusresolved => feedback
2010-04-13 09:32cindyResolutionfixed => reopened
2010-04-13 09:32cindyNote Added: 0004136
2010-04-13 09:32cindyStatusfeedback => resolved
2010-04-13 09:32cindyResolutionreopened => fixed
2010-04-13 09:32cindyNote Added: 0004137
2010-05-02 15:24gregStatusresolved => closed

Notes
(0004135)
cindy   
2010-04-13 09:01   
Solution: This bug is introduced by Patch 0000007.

related to: http://www.atutor.ca/atutor/mantis/view.php?id=4195 [^]

The reason is, the include script "include/html/enrollment.inc.php" is used by both admin and instructor enrolment pages. As the variable $course_id in this include script has been modified to $this_course_id, for the fix on 0004195. The same pass-in variable used in instructor enrolment script needs to be renamed accordingly.

Patch 0000008 has been issued for this fix.

Affected script: tools/enrolment/index.php
(0004136)
cindy   
2010-04-13 09:32   
More scripts are involved.
(0004137)
cindy   
2010-04-13 09:32   
More scripts affected:
tools/enrollment/privileges.php
tools/enrollment/enroll_edit.php