|
@@ 3424-3430 (lines=7) @@
|
| 3421 |
|
$tbl_item_property = Database :: get_course_table(TABLE_ITEM_PROPERTY); |
| 3422 |
|
$tbl_student_publication = Database :: get_course_table(TABLE_STUDENT_PUBLICATION); |
| 3423 |
|
|
| 3424 |
|
if (is_array($student_id)) { |
| 3425 |
|
$studentList = array_map('intval', $student_id); |
| 3426 |
|
$conditions[]= " ip.insert_user_id IN ('".implode("','", $studentList)."') "; |
| 3427 |
|
} else { |
| 3428 |
|
$student_id = intval($student_id); |
| 3429 |
|
$conditions[]= " ip.insert_user_id = '$student_id' "; |
| 3430 |
|
} |
| 3431 |
|
if (isset($session_id)) { |
| 3432 |
|
$session_id = intval($session_id); |
| 3433 |
|
$conditions[]= " pub.session_id = $session_id "; |
|
@@ 3474-3480 (lines=7) @@
|
| 3471 |
|
$tbl_forum_post = Database :: get_course_table(TABLE_FORUM_POST); |
| 3472 |
|
$tbl_forum = Database :: get_course_table(TABLE_FORUM); |
| 3473 |
|
|
| 3474 |
|
if (is_array($student_id)) { |
| 3475 |
|
$studentList = array_map('intval', $student_id); |
| 3476 |
|
$conditions[]= " post.poster_id IN ('".implode("','", $studentList)."') "; |
| 3477 |
|
} else { |
| 3478 |
|
$student_id = intval($student_id); |
| 3479 |
|
$conditions[]= " post.poster_id = '$student_id' "; |
| 3480 |
|
} |
| 3481 |
|
|
| 3482 |
|
if (isset($session_id)) { |
| 3483 |
|
$session_id = intval($session_id); |