Skip to content

Commit

Permalink
Test arrays before merge
Browse files Browse the repository at this point in the history
Related to compucorp#995
  • Loading branch information
bastienho authored Nov 23, 2023
1 parent bb47e85 commit a79311f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function run($form, $formName) {
// This is the generic entity for all cases.
$caseEntityNames[] = 'Case';

$contactTypes = array_merge($contactTypes, $caseEntityNames);
$contactTypes = (is_array($contactTypes) && is_array($caseEntityNames)) ? array_merge($contactTypes, $caseEntityNames) : [];

$form->assign('contactTypes', json_encode($contactTypes));
CRM_Core_Resources::singleton()->addSetting([
Expand Down

0 comments on commit a79311f

Please sign in to comment.