Fixing Gitlab support

This commit is contained in:
Dan Cryer 2014-02-25 09:47:09 +00:00
commit a1f47ddfe1
2 changed files with 7 additions and 4 deletions

View file

@ -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;
}