diff --git a/admin/schools.php b/admin/schools.php index 9525d38..4452dca 100644 --- a/admin/schools.php +++ b/admin/schools.php @@ -571,12 +571,21 @@ $(document).ready(function() { if($r->sciencehead_uid > 0) { $sh = user_load($r->sciencehead_uid); $sciencehead = $sh['name']; + if(!$sciencehead) $sciencehead="no name set"; // print_r($sh); $sha=account_load($sh['accounts_id']); - $scienceheademail=$sha['email']; + if($sha['email']) { + $scienceheademail=$sha['email']; + $pending=""; + } + else { + $scienceheademail=$sha['pendingemail']; + $pending="(unconfirmed)"; + } + } echo "