Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Fixed PHP 7.2 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
michalbundyra committed Apr 12, 2018
1 parent 125afd3 commit 633243f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Node/Schema/OpenLdap.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ protected function loadAttributeTypes()
$this->attributeTypes[$val->getName()] = $val;
}
foreach ($this->attributeTypes as $val) {
if (count($val->sup) > 0) {
if (! empty($val->sup) && count($val->sup) > 0) {
$this->resolveInheritance($val, $this->attributeTypes);
}
foreach ($val->aliases as $alias) {
Expand Down

1 comment on commit 633243f

@palmmodify22
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

224

Please sign in to comment.