diff --git a/inc/class.schedule.php b/inc/class.schedule.php --- a/inc/class.schedule.php +++ b/inc/class.schedule.php @@ -809,8 +809,18 @@ class Schedule echo '

There are no possible schedules. Please try again.

'; } - echo '

' . PHP_EOL - . ' There were a total of ' . $this->possiblePermutations . ' possible permutations. Only ' . $this->nPermutations . ' permutations had no class conflicts.' . PHP_EOL + echo '

' . PHP_EOL; + if ($this->possiblePermutations == 1) + echo 'There was one possible permutation.'; + else + echo 'There were a total of ' . $this->possiblePermutations . ' possible permutations.'; + if ($this->possiblePermutations == $this->nPermutations) + echo ' No permutations had'; + elseif (!$this->nPermutations) + echo ' All permutations had'; + else + echo ' Only ' . $this->nPermutations . ' permutation' . ($this->nPermutations == 1 ? '' : 's') . ' had no'; + echo ' scheduling conflicts.' . PHP_EOL . '

' . PHP_EOL; if ($this->created) echo ''