Cast ignore list to string regardless of value.

This commit is contained in:
Abdulmhsen B. A. A
2022-04-24 23:31:23 +03:00
parent c3f4f20f04
commit ec6bc8bdfe
2 changed files with 2 additions and 2 deletions

View File

@@ -427,7 +427,7 @@ class JellyfinServer implements ServerInterface
$ignoreIds = null;
if (null !== ($this->options['ignore'] ?? null)) {
$ignoreIds = array_map(fn($v) => trim($v), explode(',', $this->options['ignore']));
$ignoreIds = array_map(fn($v) => trim($v), explode(',', (string)$this->options['ignore']));
}
$promises = [];

View File

@@ -284,7 +284,7 @@ class PlexServer implements ServerInterface
$ignoreIds = null;
if (null !== ($this->options['ignore'] ?? null)) {
$ignoreIds = array_map(fn($v) => trim($v), explode(',', $this->options['ignore']));
$ignoreIds = array_map(fn($v) => trim($v), explode(',', (string)$this->options['ignore']));
}
if (null !== $ignoreIds && in_array(ag($json, 'Metadata.librarySectionID', '???'), $ignoreIds)) {