Skip to content

Commit

Permalink
[php8-compat] Fix php beautifier notice by conditionally assinging dy…
Browse files Browse the repository at this point in the history
…namic foreign key to the template
  • Loading branch information
seamuslee001 committed Jun 4, 2021
1 parent c1f3628 commit 3053b96
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CRM/Core/CodeGen/Specification.php
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,9 @@ public function getTable($tableXML, &$database, &$tables) {
$this->getDynamicForeignKey($foreignXML, $dynamicForeign, $name);
}
}
$table['dynamicForeignKey'] = $dynamicForeign;
if (!empty($dynamicForeign)) {
$table['dynamicForeignKey'] = $dynamicForeign;
}
}

$tables[$name] = &$table;
Expand Down

0 comments on commit 3053b96

Please sign in to comment.