old-stable24
Varun Patil 2022-10-27 00:53:44 -07:00
parent 9635b87237
commit 9afd99de2a
1 changed files with 4 additions and 4 deletions

View File

@ -18,7 +18,7 @@ trait TimelineQueryAlbums
$album = $this->getAlbumIfAllowed($query->getConnection(), $uid, $albumId); $album = $this->getAlbumIfAllowed($query->getConnection(), $uid, $albumId);
// Check permission // Check permission
if ($album === null) { if (null === $album) {
throw new \Exception("Album {$albumId} not found"); throw new \Exception("Album {$albumId} not found");
} }
@ -80,7 +80,7 @@ trait TimelineQueryAlbums
{ {
// Split name and uid // Split name and uid
$parts = explode('/', $albumId); $parts = explode('/', $albumId);
if (count($parts) !== 2) { if (2 !== \count($parts)) {
return null; return null;
} }
$albumUid = $parts[0]; $albumUid = $parts[0];