And highlight the error if it happens!

This commit is contained in:
james 2012-02-27 20:33:15 +00:00
parent d30468326e
commit e6243d0ab9

View File

@ -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));