Fixing Gitlab support
This commit is contained in:
parent
08af82e84b
commit
a1f47ddfe1
2 changed files with 7 additions and 4 deletions
|
|
@ -221,10 +221,12 @@ class ProjectBase extends Model
|
|||
*/
|
||||
public function getAccessInformation($key = null)
|
||||
{
|
||||
$data = unserialize($this->data['access_information']);
|
||||
|
||||
if (is_null($key)) {
|
||||
$rtn = $this->data['access_information'];
|
||||
} else if (isset($this->data['access_information'][$key])) {
|
||||
$rtn = $this->data['access_information'][$key];
|
||||
$rtn = $data;
|
||||
} else if (isset($data[$key])) {
|
||||
$rtn = $data[$key];
|
||||
} else {
|
||||
$rtn = null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue