Skip to content
Snippets Groups Projects
Commit 3053b963 authored by Seamus Lee's avatar Seamus Lee
Browse files

[php8-compat] Fix php beautifier notice by conditionally assinging dynamic...

[php8-compat] Fix php beautifier notice by conditionally assinging dynamic foreign key to the template
parent c1f3628f
No related branches found
No related tags found
No related merge requests found
......@@ -287,7 +287,9 @@ class CRM_Core_CodeGen_Specification {
$this->getDynamicForeignKey($foreignXML, $dynamicForeign, $name);
}
}
$table['dynamicForeignKey'] = $dynamicForeign;
if (!empty($dynamicForeign)) {
$table['dynamicForeignKey'] = $dynamicForeign;
}
}
$tables[$name] = &$table;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment