From 63f3e6c8d0c2d0fe22fc97842bf7f9481b3595e0 Mon Sep 17 00:00:00 2001 From: Tim Steiner <tsteiner2@unl.edu> Date: Tue, 3 Feb 2009 16:38:24 +0000 Subject: [PATCH] Fatal error in NewController fixed --- application/modules/courses/controllers/NewController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/application/modules/courses/controllers/NewController.php b/application/modules/courses/controllers/NewController.php index 6454a3be..f8add157 100644 --- a/application/modules/courses/controllers/NewController.php +++ b/application/modules/courses/controllers/NewController.php @@ -42,7 +42,9 @@ class Courses_NewController extends App_Controller_Action $this->view->courseLetter = $in->courseLetter; $this->view->courseNumber = $in->courseNumber; $this->view->activeRequests = $activeRequests; - $this->view->isAce = $course->isAce(); + if ($course) { + $this->view->isAce = $course && $course->isAce(); + } $this->render($render); } -- GitLab