mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-23 01:42:17 +00:00
Added function getBerechtigungKurzbz to model FHC_Model.
Using this function will be avoided the notice "Undefined index". All models have been adapted.
This commit is contained in:
@@ -4,6 +4,8 @@ if (! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class FHC_Model extends CI_Model
|
||||
{
|
||||
protected $acl;
|
||||
|
||||
function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
@@ -16,6 +18,8 @@ class FHC_Model extends CI_Model
|
||||
$this->load->helper('fhcauth');
|
||||
|
||||
$this->load->library('FHC_DB_ACL');
|
||||
|
||||
$this->acl = $this->config->item('fhc_acl');
|
||||
}
|
||||
|
||||
/** ---------------------------------------------------------------
|
||||
@@ -38,4 +42,16 @@ class FHC_Model extends CI_Model
|
||||
{
|
||||
return error($retval, $message);
|
||||
}
|
||||
|
||||
protected function getBerechtigungKurzbz($sourceName)
|
||||
{
|
||||
if (isset($this->acl[$sourceName]))
|
||||
{
|
||||
return $this->acl[$sourceName];
|
||||
}
|
||||
else
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user