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)
5151 /**
5252 * Checks if the survey code is unique.
5353 *
54- * @param string $courseCode
54+ * @param string $surveyCode Proposed new survey code
5555 *
5656 * @return bool
5757 * @assert ('') === false
5858 */
59- public static function checkUniqueCode ($ courseCode )
59+ public static function checkUniqueCode ($ surveyCode )
6060 {
6161 if (empty ($ courseCode )) {
6262 return false ;
6363 }
6464 $ courseId = api_get_course_int_id ();
6565 $ table = Database::get_course_table (TABLE_SURVEY );
66- $ courseCode = Database::escape_string ($ courseCode );
66+ $ surveyCode = Database::escape_string ($ surveyCode );
6767
6868 $ sql = "SELECT * FROM $ table
69- WHERE code = ' $ courseCode ' AND c_id = $ courseId " ;
69+ WHERE code = ' $ surveyCode ' AND c_id = $ courseId " ;
7070 $ result = Database::query ($ sql );
7171 if (Database::num_rows ($ result )) {
7272 return false ;
You can’t perform that action at this time.
0 commit comments