From 816494f3ba50bf7f18b3265063fbd481f222be51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6?= Date: Fri, 16 Sep 2022 15:09:37 +0200 Subject: [PATCH] Fix missing owner MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ --- lib/Sabre/Album/AlbumPhoto.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Sabre/Album/AlbumPhoto.php b/lib/Sabre/Album/AlbumPhoto.php index 8366d53173..a5e51bffd3 100644 --- a/lib/Sabre/Album/AlbumPhoto.php +++ b/lib/Sabre/Album/AlbumPhoto.php @@ -87,7 +87,7 @@ public function put($data) { public function get() { $nodes = $this->rootFolder - ->getUserFolder($this->albumFile->getOwner() || $this->album->getUserId()) + ->getUserFolder($this->albumFile->getOwner() ?: $this->album->getUserId()) ->getById($this->albumFile->getFileId()); $node = current($nodes); if ($node) { @@ -108,7 +108,7 @@ public function getFileId(): int { public function getFileInfo(): Node { $nodes = $this->rootFolder - ->getUserFolder($this->albumFile->getOwner() ?? $this->album->getUserId()) + ->getUserFolder($this->albumFile->getOwner() ?: $this->album->getUserId()) ->getById($this->albumFile->getFileId()); $node = current($nodes); if ($node) {