Skip to content
This repository has been archived by the owner on May 4, 2023. It is now read-only.

Commit

Permalink
Update CCourseController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
djitsz authored Nov 15, 2016
1 parent 7c03608 commit 6ab4970
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/controllers/CCourseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function actionView() {
$courses = CCourseModel::loadByAttributes(array('deleted'=>null),array('order by'=>'`created` desc'))->getObjectArray();
}
else {
$faculties = CFacultyModel::loadByAttributes(array('deletedl=>null,'institutionId'=>$this->application->user->institutionId))->getObjectArray();
$faculties = CFacultyModel::loadByAttributes(array('deleted'=>null,'institutionId'=>$this->application->user->institutionId))->getObjectArray();
if(count($faculties) > 0) $courses = CCourseModel::loadByAttributes(array('deleted'=>null,'facultyId'=>array('in',array_keys($faculties)),array('order by'=>'`created` desc'))->getObjectArray();
else $courses = array();
}
Expand Down

0 comments on commit 6ab4970

Please sign in to comment.