@ -23,6 +23,8 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
// List of observers.
$observers = array(
@ -275,7 +275,7 @@ function attendance_grade_item_update($attendance, $grades=null) {
$params = array('itemname' => $attendance->name, 'idnumber' => $attendance->cmidnumber);
} else {
// MDL-14303.
$params = array('itemname' => $attendance->name/*, 'idnumber'=>$attendance->id*/);
$params = array('itemname' => $attendance->name);
}
if ($attendance->grade > 0) {
@ -218,7 +218,7 @@ class user_sessions_cells_text_generator extends user_sessions_cells_generator {
// Used to print simple time - 1am instead of 1:00am
// Used to print simple time - 1am instead of 1:00am.
function attendance_strftimehm($time) {
$mins = userdate($time, '%M');
if ($mins == '00') {