summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-01-25 00:01:40 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-01-25 00:03:51 +0100
commite9740624fd977bde32638f1d5afcd71be724a8f5 (patch)
tree3cd49cd14c50abedf1a891f1e8f9c2a40c23bca8
parentdb4f945609caf1c8a62beed5d5eb3103184ebed7 (diff)
downloadsqltutor-plugin-e9740624fd977bde32638f1d5afcd71be724a8f5.tar.gz
sqltutor-plugin-e9740624fd977bde32638f1d5afcd71be724a8f5.tar.bz2
sqltutor-plugin-e9740624fd977bde32638f1d5afcd71be724a8f5.zip
reportall: Dont show guestuser
Since we forbid guests to query..
-rw-r--r--sqlbox/reportall.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/sqlbox/reportall.php b/sqlbox/reportall.php
index 3efca91..659da9c 100644
--- a/sqlbox/reportall.php
+++ b/sqlbox/reportall.php
@@ -38,6 +38,9 @@ $table->align = array_merge(array("left"), array_fill(0, count($b), 'center'));
$users = $DB->get_records("user");
foreach ($users as $user) {
+ if (isguestuser($user))
+ continue;
+
$name = $user->firstname.' '.$user->lastname;
$solutions = $DB->get_records_sql("SELECT s.id, sol.correct