From: Artem Andreev Date: Fri, 17 Dec 2010 12:16:58 +0000 (+0300) Subject: Improves for legend on Report page: If a student began to attend classes later, the... X-Git-Url: https://git.cameron1729.xyz/?a=commitdiff_plain;h=4254dfb83033d064d610a6071c285ae950db65ac;p=moodle-mod_attendance.git Improves for legend on Report page: If a student began to attend classes later, the taken sessions for him will be shown as '-'. --- diff --git a/report.php b/report.php index 6f7d80d..9090e03 100644 --- a/report.php +++ b/report.php @@ -168,7 +168,11 @@ if ($sessdata->groupid && !array_key_exists($sessdata->groupid, $studgroups)) $table->data[$student->id][] = ''; else - $table->data[$student->id][] = '?'; + if($sessdata->lasttaken > 0) { + $table->data[$student->id][] = '–'; + } else { + $table->data[$student->id][] = '?'; + } } } foreach($statuses as $st) {