Fix: Init

This commit is contained in:
Laurent Destailleur
2012-06-15 02:17:00 +02:00
parent 6f8ad124a1
commit c592bc88b8

View File

@@ -206,13 +206,14 @@ if (! function_exists('json_decode'))
* Implement json_decode for PHP that does not support it
*
* @param string $json Json encoded to PHP Object or Array
* @param bool $assoc False return an object, true return an array
* @param bool $assoc False return an object, true return an array. Try to always use it with true !
* @return mixed Object or Array
*/
function dol_json_decode($json, $assoc=false)
{
$comment = false;
$out='';
$strLength = strlen($json); // Must stay strlen and not dol_strlen because we want technical length, not visible length
for ($i=0; $i<$strLength; $i++)
{