File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -51,22 +51,22 @@ public static function generate_unique_code($code)
51
51
/**
52
52
* Checks if the survey code is unique.
53
53
*
54
- * @param string $courseCode
54
+ * @param string $surveyCode Proposed new survey code
55
55
*
56
56
* @return bool
57
57
* @assert ('') === false
58
58
*/
59
- public static function checkUniqueCode ($ courseCode )
59
+ public static function checkUniqueCode ($ surveyCode )
60
60
{
61
61
if (empty ($ courseCode )) {
62
62
return false ;
63
63
}
64
64
$ courseId = api_get_course_int_id ();
65
65
$ table = Database::get_course_table (TABLE_SURVEY );
66
- $ courseCode = Database::escape_string ($ courseCode );
66
+ $ surveyCode = Database::escape_string ($ surveyCode );
67
67
68
68
$ sql = "SELECT * FROM $ table
69
- WHERE code = ' $ courseCode ' AND c_id = $ courseId " ;
69
+ WHERE code = ' $ surveyCode ' AND c_id = $ courseId " ;
70
70
$ result = Database::query ($ sql );
71
71
if (Database::num_rows ($ result )) {
72
72
return false ;
You can’t perform that action at this time.
0 commit comments