From a6413f6435832f89fbdc43f5154784dfa4e2716f Mon Sep 17 00:00:00 2001 From: "Abdulmhsen B. A. A" Date: Mon, 16 May 2022 14:55:04 +0300 Subject: [PATCH] Fixed double plex suid check. --- src/Libs/Servers/PlexServer.php | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/src/Libs/Servers/PlexServer.php b/src/Libs/Servers/PlexServer.php index 37206e8e..c8a1fdf2 100644 --- a/src/Libs/Servers/PlexServer.php +++ b/src/Libs/Servers/PlexServer.php @@ -678,17 +678,15 @@ class PlexServer implements ServerInterface $entity->suids[$this->name] = $this->cacheData[$guid]; } - if (null === $entity->suids[$this->name]) { - if (null === $entity->suids[$this->name]) { - $this->logger->notice( - sprintf('%s: Ignoring \'%s\'. No relation map.', $this->name, $iName), - [ - 'guids' => $entity->hasGuids() ? $entity->getGuids() : 'None', - 'rGuids' => $entity->hasRelativeGuid() ? $entity->getRelativeGuids() : 'None', - ] - ); - continue; - } + if (null === ($entity->suids[$this->name] ?? null)) { + $this->logger->notice( + sprintf('%s: Ignoring \'%s\'. No relation map.', $this->name, $iName), + [ + 'guids' => $entity->hasGuids() ? $entity->getGuids() : 'None', + 'rGuids' => $entity->hasRelativeGuid() ? $entity->getRelativeGuids() : 'None', + ] + ); + continue; } }