Skip to content

Commit

Permalink
Remove trailing comma that causes problems for PHP 7.0-7.2
Browse files Browse the repository at this point in the history
Fixes SimpleMachines#7308

Signed-off-by: Oscar Rydhé <[email protected]>
  • Loading branch information
BrickOzp committed Feb 10, 2022
1 parent 453cbdb commit 73b03e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Load.php
Original file line number Diff line number Diff line change
Expand Up @@ -2995,7 +2995,7 @@ function($v, $k) use (&$replacements)
{
if (is_string($v))
$replacements[json_encode($v)] = JavaScriptEscape($v, true);
},
}
);
$value = strtr(json_encode($value), $replacements);
break;
Expand Down

0 comments on commit 73b03e6

Please sign in to comment.