Fix for handling old unserialize mode.
This commit is contained in:
parent
b536f972c2
commit
ac5d75db7d
1 changed files with 1 additions and 1 deletions
|
|
@ -96,7 +96,7 @@ class Project extends ProjectBase
|
|||
$info = $this->data['access_information'];
|
||||
|
||||
// Handle old-format (serialized) access information first:
|
||||
if (!empty($info) && substr($info, 0, 1) != '{') {
|
||||
if (!empty($info) && !in_array(substr($info, 0, 1), array('{', '['))) {
|
||||
$data = unserialize($info);
|
||||
} else {
|
||||
$data = json_decode($info, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue