mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
- Modified FHC_Model contructor to get UID from vilesci authentication
- Copied functionalities from old libraries to controllers - Ported old libraries to CI - Modified codeception
This commit is contained in:
@@ -92,18 +92,18 @@ class person extends Person_model
|
||||
//person_id auf gueltigkeit pruefen
|
||||
if (is_numeric($personId) && $personId != '')
|
||||
{
|
||||
$result = $this->getPerson($personId);
|
||||
$result = parent::load($personId);
|
||||
|
||||
if (!is_object($result))
|
||||
if (!is_object($result) || (is_object($result) && $result->error != EXIT_SUCCESS))
|
||||
{
|
||||
$this->errormsg = "Fehler beim Lesen der Personendaten\n";
|
||||
return false;
|
||||
}
|
||||
|
||||
$row = $result->row();
|
||||
|
||||
if (isset($row))
|
||||
if(is_array($result->retval) && count($result->retval) == 1)
|
||||
{
|
||||
$row = $result->retval[0];
|
||||
|
||||
$this->person_id = $row->person_id;
|
||||
$this->sprache = $row->sprache;
|
||||
$this->anrede = $row->anrede;
|
||||
|
||||
Reference in New Issue
Block a user