Skip to content

Commit 58f8e34

Browse files
update for phpstan
1 parent ab8560c commit 58f8e34

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

inc/container.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1736,7 +1736,7 @@ public static function findContainers($itemtype, $type = 'tab', $subtype = '', $
17361736
$where['type'] = $type;
17371737
}
17381738

1739-
if (is_array($entityRestriction) && !empty($entityRestriction)) {
1739+
if (!empty($entityRestriction)) {
17401740
$allowedEntities = [];
17411741
foreach ($entityRestriction as $restriction) {
17421742
if (isset($restriction['entities_id']) && is_array($restriction['entities_id'])) {

0 commit comments

Comments
 (0)