mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-21 08:52:21 +00:00
Permission Problem workaround
This commit is contained in:
@@ -50,8 +50,14 @@ class berechtigung extends Berechtigung_model
|
||||
* @param $berechtigung_kurzbz
|
||||
* @return true wenn ok, false im Fehlerfall
|
||||
*/
|
||||
public function load($berechtigung_kurzbz)
|
||||
public function load($berechtigung_kurzbz = null)
|
||||
{
|
||||
if (empty($berechtigung_kurzbz))
|
||||
{
|
||||
$this->errormsg = "berechtigung not set!";
|
||||
return false;
|
||||
}
|
||||
|
||||
$result = parent::load($berechtigung_kurzbz);
|
||||
|
||||
if (is_object($result) && $result->error == EXIT_SUCCESS && is_array($result->retval))
|
||||
|
||||
Reference in New Issue
Block a user