mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-24 02:12:17 +00:00
adds the dashboard menu punkt and adds greeting to the dashboard view
This commit is contained in:
@@ -290,6 +290,21 @@ class Person_model extends DB_Model
|
||||
return success($result->vorname. ' '. $result->nachname);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get first name of given uid. (Vorname Nachname)
|
||||
* @param $uid
|
||||
* @return array
|
||||
*/
|
||||
public function getFirstName($uid)
|
||||
{
|
||||
$result = getData($this->getByUid($uid))[0];
|
||||
if (!$result) {
|
||||
show_error('Failed loading person');
|
||||
}
|
||||
|
||||
return success($result->vorname);
|
||||
}
|
||||
|
||||
public function checkDuplicate($person_id)
|
||||
{
|
||||
$qry = "SELECT person_id
|
||||
|
||||
Reference in New Issue
Block a user