mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 12:19:28 +00:00
- Moved class APIv1_Controller from FHC_Controller.php to APIv1_Controller.php
- Moved class DB_Model from FHC_Model.php to DB_Model.php - load method of class person (person.class.php) now is calling getPerson method of the class Person_model - getAllForBewerbung method of class studiengang (studiengang.class.php) now is calling getAllForBewerbung method of the class Studiengang_model - getStudienplaene method of class studienplan (studienplan.class.php) now is calling getStudienplaene method of the class Studienplan_model
This commit is contained in:
@@ -90,17 +90,19 @@ class person extends Person_model
|
||||
public function load($personId)
|
||||
{
|
||||
//person_id auf gueltigkeit pruefen
|
||||
if (is_numeric($personId) && $personId != '')
|
||||
if(is_numeric($personId) && $personId != '')
|
||||
{
|
||||
$qry = str_replace('?', $this->db_add_param($personId, FHC_INTEGER), $this->_loadQuery);
|
||||
|
||||
if (!$this->db_query($qry))
|
||||
$result = $this->getPerson($personId);
|
||||
|
||||
if(!is_object($result))
|
||||
{
|
||||
$this->errormsg = "Fehler beim Lesen der Personendaten\n";
|
||||
return false;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if ($row = $this->db_fetch_object())
|
||||
$row = $result->row();
|
||||
|
||||
if(isset($row))
|
||||
{
|
||||
$this->person_id = $row->person_id;
|
||||
$this->sprache = $row->sprache;
|
||||
|
||||
Reference in New Issue
Block a user