Skip to content
Snippets Groups Projects
Commit f3373c5b authored by Tim Steiner's avatar Tim Steiner
Browse files

Fixed a bug where an annonymous array was being passed by value (oops...)

parent 74b06884
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,8 @@ class Courses_PublicViewController extends App_Controller_Action {
$subject = $this->_getParam('subject');
if ($subject) {
$courses = Courses_CourseModel::findWithCriteria(array('subject' => $subject));
$criteria = array('subject' => $subject);
$courses = Courses_CourseModel::findWithCriteria($criteria);
} else {
$courses = Courses_CourseModel::findAllActive();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment