Skip to content

Commit

Permalink
chore: correct order of checks
Browse files Browse the repository at this point in the history
Refs: sitreps
  • Loading branch information
lazysoundsystem committed Oct 9, 2024
1 parent 9ff8ad2 commit e3a6ed7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ public function isPdfable(Node $node) {

$group_content_array = GroupRelationship::loadByEntity($node);
$group_content = reset($group_content_array);
if ($group_content->getGroupType()->id() != 'cluster') {
return FALSE;
}
if ($group_content) {
if ($group_content->getGroupType()->id() != 'cluster') {
return FALSE;
}
$group = $group_content->getGroup();

if ($group->get('field_cluster_subtype')->first()) {
Expand Down

0 comments on commit e3a6ed7

Please sign in to comment.