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:
paolo
2016-07-07 16:42:04 +02:00
parent aaef564d52
commit 79230cd85d
12 changed files with 104 additions and 84 deletions
+16
View File
@@ -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;
}
}
}