Fixing getAccessInformation()
This commit is contained in:
parent
48a8c8b89a
commit
192fa20284
2 changed files with 15 additions and 15 deletions
|
|
@ -43,4 +43,19 @@ class Project extends ProjectBase
|
|||
|
||||
return null;
|
||||
}
|
||||
|
||||
public function getAccessInformation($key = null)
|
||||
{
|
||||
$data = unserialize($this->data['access_information']);
|
||||
|
||||
if (is_null($key)) {
|
||||
$rtn = $data;
|
||||
} elseif (isset($data[$key])) {
|
||||
$rtn = $data[$key];
|
||||
} else {
|
||||
$rtn = null;
|
||||
}
|
||||
|
||||
return $rtn;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue