From 4254dfb83033d064d610a6071c285ae950db65ac Mon Sep 17 00:00:00 2001 From: Artem Andreev Date: Fri, 17 Dec 2010 15:16:58 +0300 Subject: [PATCH] Improves for legend on Report page: If a student began to attend classes later, the taken sessions for him will be shown as '-'. --- report.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) {