Skip to content

Commit

Permalink
fixes #1034, prevent warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tgloeggl committed Nov 14, 2024
1 parent f48d033 commit 8f576dc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/Models/Videos.php
Original file line number Diff line number Diff line change
Expand Up @@ -705,9 +705,12 @@ private static function addEpisodeAcl($episode_id, $add_acl, $acl)
}

$result = [];
foreach ($acl as $entry) {
if (in_array($entry['role'], $possible_roles) === false) {
$result[] = $entry;

if (is_array($acl)) {
foreach ($acl as $entry) {
if (in_array($entry['role'], $possible_roles) === false) {
$result[] = $entry;
}
}
}

Expand Down

0 comments on commit 8f576dc

Please sign in to comment.