Skip to content

Commit

Permalink
Fix bug Sterc#32 от php 8.
Browse files Browse the repository at this point in the history
Small fix bug on php 8.
Sterc#32
  • Loading branch information
Alexij2 authored Jan 17, 2023
1 parent 7ac8e55 commit 934131f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
*/
$output = $input;
$array = $modx->fromJSON($input);
if (count($array) > 0) {
if ($array && count($array) > 0) {
$chunk = $modx->getObject('modChunk', array('name' => $options));
if ($chunk) {
$output = $chunk->process($array);
}
}
return $output;
return $output;

0 comments on commit 934131f

Please sign in to comment.