|
@@ 3686-3692 (lines=7) @@
|
| 3683 |
|
$tbl_item_property = Database::get_course_table(TABLE_ITEM_PROPERTY); |
| 3684 |
|
$tbl_student_publication = Database::get_course_table(TABLE_STUDENT_PUBLICATION); |
| 3685 |
|
|
| 3686 |
|
if (is_array($student_id)) { |
| 3687 |
|
$studentList = array_map('intval', $student_id); |
| 3688 |
|
$conditions[] = " ip.insert_user_id IN ('".implode("','", $studentList)."') "; |
| 3689 |
|
} else { |
| 3690 |
|
$student_id = intval($student_id); |
| 3691 |
|
$conditions[] = " ip.insert_user_id = '$student_id' "; |
| 3692 |
|
} |
| 3693 |
|
if (isset($session_id)) { |
| 3694 |
|
$session_id = intval($session_id); |
| 3695 |
|
$conditions[] = " pub.session_id = $session_id "; |
|
@@ 3734-3740 (lines=7) @@
|
| 3731 |
|
$tbl_forum = Database::get_course_table(TABLE_FORUM); |
| 3732 |
|
|
| 3733 |
|
$conditions = array(); |
| 3734 |
|
if (is_array($student_id)) { |
| 3735 |
|
$studentList = array_map('intval', $student_id); |
| 3736 |
|
$conditions[] = " post.poster_id IN ('".implode("','", $studentList)."') "; |
| 3737 |
|
} else { |
| 3738 |
|
$student_id = intval($student_id); |
| 3739 |
|
$conditions[] = " post.poster_id = '$student_id' "; |
| 3740 |
|
} |
| 3741 |
|
|
| 3742 |
|
$conditionsToString = implode('AND ', $conditions); |
| 3743 |
|
|