|
@@ 3292-3298 (lines=7) @@
|
| 3289 |
|
$tbl_item_property = Database :: get_course_table(TABLE_ITEM_PROPERTY); |
| 3290 |
|
$tbl_student_publication = Database :: get_course_table(TABLE_STUDENT_PUBLICATION); |
| 3291 |
|
|
| 3292 |
|
if (is_array($student_id)) { |
| 3293 |
|
$studentList = array_map('intval', $student_id); |
| 3294 |
|
$conditions[]= " ip.insert_user_id IN ('".implode("','", $studentList)."') "; |
| 3295 |
|
} else { |
| 3296 |
|
$student_id = intval($student_id); |
| 3297 |
|
$conditions[]= " ip.insert_user_id = '$student_id' "; |
| 3298 |
|
} |
| 3299 |
|
if (isset($session_id)) { |
| 3300 |
|
$session_id = intval($session_id); |
| 3301 |
|
$conditions[]= " pub.session_id = $session_id "; |
|
@@ 3342-3348 (lines=7) @@
|
| 3339 |
|
$tbl_forum_post = Database :: get_course_table(TABLE_FORUM_POST); |
| 3340 |
|
$tbl_forum = Database :: get_course_table(TABLE_FORUM); |
| 3341 |
|
|
| 3342 |
|
if (is_array($student_id)) { |
| 3343 |
|
$studentList = array_map('intval', $student_id); |
| 3344 |
|
$conditions[]= " post.poster_id IN ('".implode("','", $studentList)."') "; |
| 3345 |
|
} else { |
| 3346 |
|
$student_id = intval($student_id); |
| 3347 |
|
$conditions[]= " post.poster_id = '$student_id' "; |
| 3348 |
|
} |
| 3349 |
|
|
| 3350 |
|
if (isset($session_id)) { |
| 3351 |
|
$session_id = intval($session_id); |