Skip to content

Commit

Permalink
Fix potential "undefined index" warning
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed Dec 19, 2023
1 parent 97c6181 commit a689d4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion program/lib/Roundcube/rcube.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ public function get_cache($name, $type = 'db', $ttl = 0, $packed = true, $indexe
$this->caches[$name] = rcube_cache::factory($type, $userid, $name, $ttl, $packed, $indexed);
}

return $this->caches[$name];
return $this->caches[$name] ?? null;
}

/**
Expand Down

0 comments on commit a689d4c

Please sign in to comment.