diff --git a/class.schedule.php b/class.schedule.php --- a/class.schedule.php +++ b/class.schedule.php @@ -92,8 +92,7 @@ class Schedule { echo "Could not find class: " . $n . "
"; } else { - $p = "unknown prof"; - $this->classStorage[$counter]->addSection($l, $p, $s, $e, $d); + $this->classStorage[$counter]->section_add(new Section($l, $s, $e, $d)); } } @@ -351,7 +350,8 @@ class Schedule } /* edit button */ - echo '

'; + if ($id = $this->id_get()) + echo '

'; echo "

There were a total of " . $this->possiblePermutations . " possible permutations. Only " . $this->nPermutations . " permutations had no class conflicts.

";