[module.department] renamed 'getLinkedDepartments' (plural)
This commit is contained in:
parent
b47341f792
commit
60ceb9d2a8
|
@ -24,9 +24,9 @@ class departmentController
|
||||||
/** @var professor $prof_repo */
|
/** @var professor $prof_repo */
|
||||||
$prof_repo = Repo::getRepo('professor');
|
$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){
|
foreach ($deps as $dep){
|
||||||
if($dep["idDep"] == $department){
|
if($dep["idDep"] == $department){
|
||||||
$_SESSION["AvailableDepartment"] = $deps;
|
$_SESSION["AvailableDepartment"] = $deps;
|
||||||
|
|
Loading…
Reference in New Issue