|
@@ 328-335 (lines=8) @@
|
| 325 |
|
post_group_id = $groupIid |
| 326 |
|
ORDER BY sent_date DESC"; |
| 327 |
|
} else { |
| 328 |
|
if (!empty($group_id)) { |
| 329 |
|
// set to select only messages posted by the user's group |
| 330 |
|
$group_query = " WHERE c_id = $course_id AND post_group_id = $groupIid"; |
| 331 |
|
$subdirs_query = " AND parent_id = 0"; |
| 332 |
|
} else { |
| 333 |
|
$group_query = " WHERE c_id = $course_id AND (post_group_id = '0' OR post_group_id is NULL) "; |
| 334 |
|
$subdirs_query = " AND parent_id = 0"; |
| 335 |
|
} |
| 336 |
|
//@todo how we can active or not an assignment? |
| 337 |
|
$active_condition = ' AND active IN (1, 0)'; |
| 338 |
|
$sql = "SELECT * FROM $work_table |
|
@@ 1355-1361 (lines=7) @@
|
| 1352 |
|
$groupIid = (int) $groupIid; |
| 1353 |
|
|
| 1354 |
|
// Get list from database |
| 1355 |
|
if (!empty($groupIid)) { |
| 1356 |
|
$group_query = " WHERE w.c_id = $course_id AND post_group_id = $groupIid"; |
| 1357 |
|
$subdirs_query = "AND parent_id = 0"; |
| 1358 |
|
} else { |
| 1359 |
|
$group_query = " WHERE w.c_id = $course_id AND (post_group_id = '0' or post_group_id is NULL) "; |
| 1360 |
|
$subdirs_query = "AND parent_id = 0"; |
| 1361 |
|
} |
| 1362 |
|
|
| 1363 |
|
$active_condition = ' AND active IN (1, 0)'; |
| 1364 |
|
|