Fix PHP8 warning
This commit is contained in:
parent
70810e1f88
commit
4ff91e51de
1 changed files with 2 additions and 2 deletions
|
@ -63,10 +63,10 @@ class RcubeUser extends Base
|
|||
*/
|
||||
public function read($key)
|
||||
{
|
||||
if (!isset($this->cache[$key])) {
|
||||
if (!array_key_exists($key, $this->cache)) {
|
||||
$factors = $this->get_factors();
|
||||
$this->log(LOG_DEBUG, "RcubeUser::read({$key})");
|
||||
$this->cache[$key] = $factors[$key];
|
||||
$this->cache[$key] = $factors[$key] ?? null;
|
||||
}
|
||||
|
||||
return $this->cache[$key];
|
||||
|
|
Loading…
Add table
Reference in a new issue