Changeset - f6fe7b05b37a
[Not reviewed]
default
0 1 0
Nathan Brink (binki) - 15 years ago 2010-10-09 19:33:55
ohnobinki@ohnopublishing.net
Fix check in previous commit to allow user past the ``choose your school'' page if he's from Generic College ('default').
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
input.php
Show inline comments
 
@@ -43,13 +43,13 @@ var sectionsOfClass = Array();
 
/*
 
 * Force a student to choose a school or declare he's a generic
 
 * student before displaying the input form. To do this, we need
 
 * another variable in $_SESSION: $_SESSION['school_chosen'].
 
 */
 
$school = $inputPage->get_school();
 
if ($_REQUEST['school'] == 1 || $school['id'] != 'default')
 
if ($school && (!empty($_REQUEST['school']) || $school['id'] != 'default'))
 
  $_SESSION['school_chosen'] = TRUE;
 
if ($_REQUEST['selectschool'] == 1
 
    || $school['id'] == 'default' && !isset($_SESSION['school_chosen']))
 
  {
 
?>
 
<h2>School Selection</h2>
0 comments (0 inline, 0 general)