Merge pull request #8196 from nextcloud/8160_12
[stable 12] Do not try to get the jailed path if we can't find the id
This commit is contained in:
commit
7e72a26dc7
|
@ -311,6 +311,10 @@ class CacheJail extends CacheWrapper {
|
|||
*/
|
||||
public function getPathById($id) {
|
||||
$path = $this->getCache()->getPathById($id);
|
||||
if ($path === null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return $this->getJailedPath($path);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue