mirror of
https://github.com/newnius/YAO-portal.git
synced 2025-12-15 09:36:43 +00:00
update, add virtual cluster management
This commit is contained in:
@@ -37,7 +37,7 @@ class CRObject implements JsonSerializable
|
||||
public function getBool($key, $default = false)
|
||||
{
|
||||
if (isset($this->map[$key]) && !is_null($this->map[$key])) {
|
||||
return $this->map[$key] === true;
|
||||
return $this->map[$key] === true || $this->map[$key] === 'true';
|
||||
}
|
||||
return $default === true;
|
||||
}
|
||||
@@ -64,6 +64,6 @@ class CRObject implements JsonSerializable
|
||||
public function jsonSerialize()
|
||||
{
|
||||
return $this->toArray();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user