Skip to content

Commit

Permalink
Merge pull request #20509 from seamuslee001/fix_beautifier_notice
Browse files Browse the repository at this point in the history
[php8-compat] Fix php beautifier notice by conditionally assinging dy…
  • Loading branch information
seamuslee001 authored Jun 5, 2021
2 parents 432fa39 + 3053b96 commit 1f2aed5
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 1f2aed5

Please sign in to comment.