forked from science-ation/science-ation
And highlight the error if it happens!
This commit is contained in:
parent
d30468326e
commit
e6243d0ab9
@ -120,11 +120,14 @@ if($_SESSION['schoolid'] && $_SESSION['schoolaccesscode'])
|
||||
if($config['participant_registration_type']=="invite") {
|
||||
if($school->projectlimitper=="total") {
|
||||
if($school->projectlimit) {
|
||||
echo i18n("You have invited %1 of %2 total projects for your school",array($currentinvited,$school->projectlimit));
|
||||
if($currentinvited<$school->projectlimit) {
|
||||
echo i18n("You have invited %1 of %2 total projects for your school",array($currentinvited,$school->projectlimit));
|
||||
for($a=$config['mingrade'];$a<=$config['maxgrade'];$a++)
|
||||
$okaygrades[]=$a;
|
||||
}
|
||||
else {
|
||||
echo error(i18n("You have invited %1 of %2 total projects for your school",array($currentinvited,$school->projectlimit)));
|
||||
}
|
||||
}
|
||||
else {
|
||||
echo i18n("You have invited %1 project(s) for your school",array($currentinvited,$school->projectlimit));
|
||||
|
Loading…
Reference in New Issue
Block a user