mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-21 08:52:21 +00:00
feature(News-StudiengangsInformationen): adds the Studiengangsinformationen next to the news view
This commit is contained in:
@@ -687,11 +687,15 @@ class Studiengang_model extends DB_Model
|
||||
|
||||
$this->load->model('crm/Student_model', 'StudentModel');
|
||||
|
||||
//TODO: this does not work for Mitarbeiter
|
||||
$student = $this->StudentModel->loadWhere(['student_uid' => getAuthUID()]);
|
||||
if (isError($student))
|
||||
return error($student);
|
||||
if (getData($student)) {
|
||||
//TODO: if a mitarbeiter requests this site, empty data should be returned
|
||||
if(count($student) == 0)
|
||||
{
|
||||
return new stdClass();
|
||||
}
|
||||
$student = current(getData($student));
|
||||
$studiengang_kz = $student->studiengang_kz;
|
||||
$semester = $student->semester;
|
||||
|
||||
Reference in New Issue
Block a user