Skip to content

Commit

Permalink
is_array not is_object
Browse files Browse the repository at this point in the history
  • Loading branch information
pwtyler committed Nov 15, 2024
1 parent 14a9624 commit 7740704
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,10 @@ public function buildForm(
'#weight' => substr($filename, 0, -3) === 'xml' ? -10 : 10,
];

if (is_object($file_contents)) {
if (is_array($file_contents)) {
$file_contents = json_encode($file_contents);
}

$form[$filename][] = $this->getViewSolrFile($filename, $file_contents, $is_open);
$is_open = FALSE;
}
Expand Down

0 comments on commit 7740704

Please sign in to comment.