[module.department] renamed 'getLinkedDepartments' (plural)

This commit is contained in:
xdrm-brackets 2018-03-19 19:05:19 +01:00
parent b47341f792
commit 60ceb9d2a8
1 changed files with 2 additions and 2 deletions

View File

@ -24,9 +24,9 @@ class departmentController
/** @var professor $prof_repo */
$prof_repo = Repo::getRepo('professor');
$deps = $prof_repo->getLinkedDepartment($_SESSION['CAS']['login']);
$deps = $prof_repo->getLinkedDepartments($_SESSION['CAS']['login']);
if(is_array($deps)){
if( count($deps) > 0 ){
foreach ($deps as $dep){
if($dep["idDep"] == $department){
$_SESSION["AvailableDepartment"] = $deps;