diff --git a/schoolinvite.php b/schoolinvite.php index 3491849..6341205 100644 --- a/schoolinvite.php +++ b/schoolinvite.php @@ -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));