Changeset - 4791577d0484
[Not reviewed]
default
0 1 0
Nathan Brink (binki) - 15 years ago 2011-02-05 22:12:30
ohnobinki@ohnopublishing.net
Fix missing ``new'' keyword in an attempt to instantiate an ErrorException in the Semester object.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
inc/class.semester.inc
Show inline comments
 
@@ -72,13 +72,13 @@ class Semester
 
   *   The class/course to add.
 
   */
 
  public function class_add(Course $class)
 
  {
 
    $class_parts = Course::parse($class->getName());
 
    if (!isset($class_parts['course']))
 
      throw ErrorException('I was given a class with an invalid name: `' . $class->getName() . '\'');
 
      throw new ErrorException('I was given a class with an invalid name: `' . $class->getName() . '\'');
 

	
 
    if (!isset($this->departments[$class_parts['department']]))
 
      $this->departments[$class_parts['department']] = array();
 
    $department =& $this->departments[$class_parts['department']];
 

	
 
    $department[$class_parts['course']] = $class;
0 comments (0 inline, 0 general)