workshop MDL-24046 Fixed SQL error in workshop submission validation
authorSam Hemelryk <sam@moodle.com>
Thu, 2 Sep 2010 03:22:46 +0000 (03:22 +0000)
committerSam Hemelryk <sam@moodle.com>
Thu, 2 Sep 2010 03:22:46 +0000 (03:22 +0000)
mod/workshop/submission_form.php

index 367d484..55358a8 100644 (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)