Skip to content

Commit 922ae6f

Browse files
update for phpstan
1 parent 5116a7a commit 922ae6f

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
@@ -1742,7 +1742,7 @@ public static function findContainers($itemtype, $type = 'tab', $subtype = '', $
17421742
$where['type'] = $type;
17431743
}
17441744

1745-
if (is_array($entityRestriction) && !empty($entityRestriction)) {
1745+
if (!empty($entityRestriction)) {
17461746
$allowedEntities = [];
17471747
foreach ($entityRestriction as $restriction) {
17481748
if (isset($restriction['entities_id']) && is_array($restriction['entities_id'])) {

0 commit comments

Comments
 (0)