diff --git a/main/gradebook/lib/be/studentpublicationlink.class.php b/main/gradebook/lib/be/studentpublicationlink.class.php index 71c98a418c..6a203ee50c 100644 --- a/main/gradebook/lib/be/studentpublicationlink.class.php +++ b/main/gradebook/lib/be/studentpublicationlink.class.php @@ -160,7 +160,7 @@ class StudentPublicationLink extends AbstractLink } else { $v_assigment_id = $assignment['id']; } - $sql = 'SELECT * FROM '.$tbl_stats.' WHERE parent_id = '.$v_assigment_id; + $sql = 'SELECT * FROM '.$tbl_stats.' WHERE parent_id ="'.$v_assigment_id.'"'; if (isset($stud_id)){ $sql1='SELECT firstname, lastname FROM '.Database::get_main_table(TABLE_MAIN_USER)." WHERE user_id = '".$stud_id."'"; $query = api_sql_query($sql1,__FILE__,__LINE__);