mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
WIP
This commit is contained in:
@@ -140,13 +140,16 @@ class Abgabe extends FHCAPI_Controller
|
||||
|
||||
$projektarbeiten = getData($result);
|
||||
|
||||
// TODO: save access to this, array could be empty
|
||||
foreach($projektarbeiten as $pa) {
|
||||
$result = $this->ProjektarbeitModel->getProjektbetreuerEmail($pa->projektarbeit_id);
|
||||
|
||||
// TODO: save access
|
||||
$pa->email = getData($result)[0]->private_email;
|
||||
if(count($projektarbeiten)) {
|
||||
// TODO: save access to this, array could be empty
|
||||
foreach($projektarbeiten as $pa) {
|
||||
$result = $this->ProjektarbeitModel->getProjektbetreuerEmail($pa->projektarbeit_id);
|
||||
|
||||
// TODO: save access
|
||||
$pa->email = getData($result)[0]->private_email;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$this->terminateWithSuccess(array($projektarbeiten, DOMAIN, $uid));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user