Skip to content

Commit

Permalink
Fix php notice
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienClairembault authored and cedric-anne committed Jul 12, 2021
1 parent 51a8e8f commit 6a5dcd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/container.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,7 @@ static function getEntries($type = 'tab', $full = false) {
'plugin_fields_containers_id' => $item['id'],
'right' => ['>=', READ]]);
$first_found = array_shift($found);
if ($first_found['right'] == null || $first_found['right'] == 0) {
if (!$first_found || $first_found['right'] == null || $first_found['right'] == 0) {
continue;
}

Expand Down

0 comments on commit 6a5dcd8

Please sign in to comment.