main/inc/lib/course_description.lib.php 1 location
|
@@ 87-89 (lines=3) @@
|
| 84 |
|
ORDER BY id "; |
| 85 |
|
$rs = Database::query($sql); |
| 86 |
|
$data = array(); |
| 87 |
|
while ($description = Database::fetch_array($rs)) { |
| 88 |
|
$data['descriptions'][$description['id']] = Security::remove_XSS($description, STUDENT); |
| 89 |
|
} |
| 90 |
|
|
| 91 |
|
return $data; |
| 92 |
|
} |
main/dropbox/dropbox_class.inc.php 1 location
|
@@ 226-229 (lines=4) @@
|
| 223 |
|
$sql_feedback = "SELECT * FROM ".$dropbox_cnf['tbl_feedback']." |
| 224 |
|
WHERE c_id = $course_id AND file_id='".$id."' ORDER BY feedback_id ASC"; |
| 225 |
|
$result = Database::query($sql_feedback); |
| 226 |
|
while ($row_feedback = Database::fetch_array($result)) { |
| 227 |
|
$row_feedback['feedback'] = Security::remove_XSS($row_feedback['feedback']); |
| 228 |
|
$feedback2[] = $row_feedback; |
| 229 |
|
} |
| 230 |
|
$this->feedback2= $feedback2; |
| 231 |
|
} |
| 232 |
|
} |