- Pull the science head user properly for the school table display.

This commit is contained in:
dave 2009-12-02 01:22:47 +00:00
parent e9e04ad944
commit 06d9e74190

View File

@ -336,7 +336,13 @@
echo " <td>$r->school</td>\n"; echo " <td>$r->school</td>\n";
echo " <td>$r->address, $r->city, $r->postalcode</td>\n"; echo " <td>$r->address, $r->city, $r->postalcode</td>\n";
echo " <td>$r->phone</td>\n"; echo " <td>$r->phone</td>\n";
echo " <td>$r->sciencehead</td>\n";
$sciencehead = '';
if($r->sciencehead_uid > 0) {
$sh = user_load_by_uid($r->sciencehead_uid);
$sciencehead = $sh['name'];
}
echo " <td>$sciencehead</td>\n";
if($config['participant_registration_type']=="schoolpassword") if($config['participant_registration_type']=="schoolpassword")
echo " <td>$r->registration_password</td>\n"; echo " <td>$r->registration_password</td>\n";
echo " <td>$r->accesscode</td>\n"; echo " <td>$r->accesscode</td>\n";