Skip to content

Commit

Permalink
Fix missing owner
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
  • Loading branch information
skjnldsv committed Sep 16, 2022
1 parent 0c7061b commit 816494f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Sabre/Album/AlbumPhoto.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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) {
Expand Down

0 comments on commit 816494f

Please sign in to comment.