# HG changeset patch # User Nathan Phillip Brink # Date 2010-10-21 18:46:51 # Node ID aeac5bc1b8bc223553d34ed65bc485b9389aa6f2 # Parent b65dd106baf2daaca7cde694927c4fab5773bc7e Use a defined variable and array index. diff --git a/class.schedule.php b/class.schedule.php --- a/class.schedule.php +++ b/class.schedule.php @@ -291,7 +291,7 @@ class Schedule for($dayLoop = 0; $dayLoop < 5; $dayLoop++) { /* Makes sure there is not a class already in progress */ - if($rowspan[$lastDay] <= 0) + if($rowspan[$dayLoop] <= 0) { for($j = 0; $j < $this->nclasses; $j++) {