mirror of
https://github.com/salesagility/SuiteCRM.git
synced 2025-02-12 01:08:54 +00:00
fixing a missleading parameter name
This commit is contained in:
parent
3bbbc388d4
commit
b675213568
1 changed files with 3 additions and 3 deletions
|
@ -63,14 +63,14 @@ class JSON
|
|||
/**
|
||||
* JSON encode a string
|
||||
*
|
||||
* @param array $string
|
||||
* @param array $array
|
||||
* @param bool $addSecurityEnvelope defaults to false
|
||||
* @param bool $encodeSpecial
|
||||
* @return string
|
||||
*/
|
||||
public static function encode($string, $addSecurityEnvelope = false, $encodeSpecial = false)
|
||||
public static function encode($array, $addSecurityEnvelope = false, $encodeSpecial = false)
|
||||
{
|
||||
$encodedString = json_encode($string);
|
||||
$encodedString = json_encode($array);
|
||||
|
||||
if ($encodeSpecial) {
|
||||
$charMap = array('<' => '\u003C', '>' => '\u003E', "'" => '\u0027', '&' => '\u0026');
|
||||
|
|
Loading…
Reference in a new issue