[svn r18523] minor-logic changes -added quotes, in query sql - (partial FS#3664)

skala
Isaac Flores 16 years ago
parent af7fa4f150
commit 4d43f428de
  1. 2
      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__);

Loading…
Cancel
Save