summaryrefslogtreecommitdiff
path: root/sqlbox/reportall.php
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-01-25 13:23:43 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-01-25 22:25:54 +0100
commite0074fe42cd13abba6afeebf1236c7a4d2774839 (patch)
tree39b1a7e4074d593bc831f42eabbde315fb577b54 /sqlbox/reportall.php
parentb9bee5750e3cdcbd7d759f462d3d2d1b855497a3 (diff)
downloadsqltutor-plugin-e0074fe42cd13abba6afeebf1236c7a4d2774839.tar.gz
sqltutor-plugin-e0074fe42cd13abba6afeebf1236c7a4d2774839.tar.bz2
sqltutor-plugin-e0074fe42cd13abba6afeebf1236c7a4d2774839.zip
reportall: Indicate whether a user did a query at all or not
Diffstat (limited to 'sqlbox/reportall.php')
-rw-r--r--sqlbox/reportall.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/sqlbox/reportall.php b/sqlbox/reportall.php
index e6a6dab..035dfe8 100644
--- a/sqlbox/reportall.php
+++ b/sqlbox/reportall.php
@@ -50,7 +50,7 @@ foreach ($users as $user) {
array('id'=>$user->id));
$s = array();
foreach ($solutions as $solution)
- $s[$solution->id] = ($solution->correct == 1) ? '☑' : '☒';
+ $s[$solution->id] = ($solution->correct == '1') ? '☑' : ($solution->correct == '0' ? '☒' : '☐');
$table->data[] = array_merge(array($name), $s);
}