mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-24085 - unused tablelib where in show_nonrespondents.php
This commit is contained in:
parent
2361b7dd77
commit
3fac763e5f
2 changed files with 5 additions and 10 deletions
|
@ -736,7 +736,7 @@ function feedback_get_incomplete_users($cm, $group = false, $sort = '', $startpa
|
|||
|
||||
//now get all completeds
|
||||
if(!$completedusers = $DB->get_records_menu('feedback_completed', array('feedback'=>$cm->instance), '', 'userid,id')){
|
||||
return false;
|
||||
return $allusers;
|
||||
}
|
||||
$completedusers = array_keys($completedusers);
|
||||
|
||||
|
|
|
@ -19,8 +19,8 @@
|
|||
$subject = optional_param('subject','',PARAM_CLEANHTML);
|
||||
$message = optional_param('message','',PARAM_CLEANHTML);
|
||||
$format = optional_param('format',FORMAT_MOODLE,PARAM_INT);
|
||||
$messageuser = optional_param('messageuser',PARAM_INT);
|
||||
$action = optional_param('action',PARAM_ALPHA);
|
||||
$messageuser = optional_param('messageuser', false, PARAM_INT);
|
||||
$action = optional_param('action', '',PARAM_ALPHA);
|
||||
$perpage = optional_param('perpage', FEEDBACK_DEFAULT_PAGE_COUNT, PARAM_INT); // how many per page
|
||||
$showall = optional_param('showall', false, PARAM_INT); // should we show all users
|
||||
// $SESSION->feedback->current_tab = $do_show;
|
||||
|
@ -68,7 +68,7 @@
|
|||
|
||||
require_capability('mod/feedback:viewreports', $context);
|
||||
|
||||
if(has_capability('moodle/course:bulkmessaging', $coursecontext)) {
|
||||
if($action == 'sendmessage' AND has_capability('moodle/course:bulkmessaging', $coursecontext)) {
|
||||
// require_once($CFG->dirroot.'/message/lib.php');
|
||||
$good = 1;
|
||||
if(is_array($messageuser)) {
|
||||
|
@ -169,11 +169,6 @@
|
|||
$sort = '';
|
||||
}
|
||||
|
||||
list($where, $params) = $table->get_sql_where(); //TODO: weird, $where not used anywhere
|
||||
if ($where) {
|
||||
$where .= ' AND';
|
||||
}
|
||||
|
||||
//get students in conjunction with groupmode
|
||||
if($groupmode > 0) {
|
||||
if($mygroupid > 0) {
|
||||
|
@ -197,7 +192,7 @@
|
|||
$pagecount = $table->get_page_size();
|
||||
}
|
||||
|
||||
$students = feedback_get_incomplete_users($cm, $usedgroupid, $sort, $startpage, $pagecount); // TODO: $where and $params should be probably used here
|
||||
$students = feedback_get_incomplete_users($cm, $usedgroupid, $sort, $startpage, $pagecount);
|
||||
//####### viewreports-start
|
||||
//print the list of students
|
||||
echo $OUTPUT->box_start('generalbox boxaligncenter boxwidthwide');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue