Skip to content

Commit 816494f

Browse files
committed
Fix missing owner
Signed-off-by: John Molakvoæ <[email protected]>
1 parent 0c7061b commit 816494f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/Sabre/Album/AlbumPhoto.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function put($data) {
8787

8888
public function get() {
8989
$nodes = $this->rootFolder
90-
->getUserFolder($this->albumFile->getOwner() || $this->album->getUserId())
90+
->getUserFolder($this->albumFile->getOwner() ?: $this->album->getUserId())
9191
->getById($this->albumFile->getFileId());
9292
$node = current($nodes);
9393
if ($node) {
@@ -108,7 +108,7 @@ public function getFileId(): int {
108108

109109
public function getFileInfo(): Node {
110110
$nodes = $this->rootFolder
111-
->getUserFolder($this->albumFile->getOwner() ?? $this->album->getUserId())
111+
->getUserFolder($this->albumFile->getOwner() ?: $this->album->getUserId())
112112
->getById($this->albumFile->getFileId());
113113
$node = current($nodes);
114114
if ($node) {

0 commit comments

Comments
 (0)