diff --git a/modules/apigee_edge_teams/apigee_edge_teams.module b/modules/apigee_edge_teams/apigee_edge_teams.module index 1bda20e5..c1e90c49 100644 --- a/modules/apigee_edge_teams/apigee_edge_teams.module +++ b/modules/apigee_edge_teams/apigee_edge_teams.module @@ -177,7 +177,7 @@ function apigee_edge_teams_preprocess(&$variables, $hook) { } $team = \Drupal::routeMatch()->getParameter('team'); - if (!$team || $team->getStatus() !== TeamInterface::STATUS_INACTIVE) { + if (!($team instanceof TeamInterface) || $team->getStatus() !== TeamInterface::STATUS_INACTIVE) { return; }