bugfix
This commit is contained in:
parent
b461a69197
commit
0702ea6ec9
|
@ -95,7 +95,7 @@ class TempAuthKey extends AuthKey implements JsonSerializable
|
||||||
{
|
{
|
||||||
$this->bound = $bound;
|
$this->bound = $bound;
|
||||||
if (!$pfs) {
|
if (!$pfs) {
|
||||||
foreach (['authKey', 'id', 'inited', 'serverSalt'] as $key) {
|
foreach (['authKey', 'id', 'serverSalt'] as $key) {
|
||||||
$this->{$key} = &$bound->{$key};
|
$this->{$key} = &$bound->{$key};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -187,4 +187,13 @@ class TempAuthKey extends AuthKey implements JsonSerializable
|
||||||
'inited'
|
'inited'
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* Wakeup function.
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
$this->inited = (bool) $this->inited;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user