From 06d9e74190fd36cfca813c2b7f983b585fcd091d Mon Sep 17 00:00:00 2001 From: dave Date: Wed, 2 Dec 2009 01:22:47 +0000 Subject: [PATCH] - Pull the science head user properly for the school table display. --- admin/schools.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/admin/schools.php b/admin/schools.php index c4d7138..a160a8d 100644 --- a/admin/schools.php +++ b/admin/schools.php @@ -336,7 +336,13 @@ echo " $r->school\n"; echo " $r->address, $r->city, $r->postalcode\n"; echo " $r->phone\n"; - echo " $r->sciencehead\n"; + + $sciencehead = ''; + if($r->sciencehead_uid > 0) { + $sh = user_load_by_uid($r->sciencehead_uid); + $sciencehead = $sh['name']; + } + echo " $sciencehead\n"; if($config['participant_registration_type']=="schoolpassword") echo " $r->registration_password\n"; echo " $r->accesscode\n";