Skip to content

Commit fb73e0c

Browse files
authored
Update Entity.php
1 parent d612bce commit fb73e0c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/Entity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ private function castAsJson($value, bool $asArray = false)
590590
{
591591
$strlen = is_string($value) ? strlen($value) : 0;
592592
if (($strlen > 1 && ((strpos($value, '[') === 0 && strrpos($value, ']') === $strlen - 1) || (strpos($value, '{') === 0 && strrpos($value, '}') === $strlen - 1) || (strpos($value, '"') === 0 && strrpos($value, '"') === $strlen - 1))) || is_numeric($value))
593-
{
593+
{
594594
$tmp = json_decode($value, $asArray);
595595

596596
if (json_last_error() !== JSON_ERROR_NONE)

0 commit comments

Comments
 (0)