Skip to content

Commit

Permalink
cast $result['value'][$I] as string
Browse files Browse the repository at this point in the history
  • Loading branch information
skerbis committed Aug 17, 2022
1 parent ba3a718 commit 5092ac9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/MBlock/Handler/MBlockValueHandler.php
Expand Up @@ -68,7 +68,7 @@ public static function loadRexVars()
$result['link'][$i] = $sql->getValue('link' . $i);
}

$jsonResult = json_decode(htmlspecialchars_decode($result['value'][$i]), true);
$jsonResult = json_decode(htmlspecialchars_decode((string) $result['value'][$i]), true);

if (is_array($jsonResult))
$result['value'][$i] = $jsonResult;
Expand Down Expand Up @@ -122,3 +122,4 @@ public static function loadFromTable($table, $id = 0)
return $result;
}
}

0 comments on commit 5092ac9

Please sign in to comment.