From e9740624fd977bde32638f1d5afcd71be724a8f5 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Fri, 25 Jan 2013 00:01:40 +0100 Subject: reportall: Dont show guestuser Since we forbid guests to query.. --- sqlbox/reportall.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sqlbox') 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 -- cgit