workshop MDL-24046 Fixed SQL error in workshop submission validation

This commit is contained in:
Sam Hemelryk
2010-09-02 03:22:46 +00:00
parent 59ee314414
commit 090417c109
+1 -1
View File
@@ -76,7 +76,7 @@ class workshop_submission_form extends moodleform {
if (empty($data['id']) and empty($data['example'])) {
// make sure there is no submission saved meanwhile from another browser window
$sql = "SELECT COUNT (s.id)
$sql = "SELECT COUNT(s.id)
FROM {workshop_submissions} s
JOIN {workshop} w ON (s.workshopid = w.id)
JOIN {course_modules} cm ON (w.id = cm.instance)