# HG changeset patch # User Nathan Phillip Brink # Date 2011-10-27 00:14:04 # Node ID 0f237d0addacab8b528398d73c6617ebe0f47e05 # Parent bc140e90c3613d50e01b3c407b8fc70d6d2cc11a Cleaner English concerning the number of possible and realized permutations. 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 ''