FIX : Avoid warning strict mode when hosting server do not have
php5_curl installed
This commit is contained in:
parent
d78292b9af
commit
517e9094da
@ -251,7 +251,9 @@ function dol_json_decode($json, $assoc=false)
|
|||||||
if (! empty($array))
|
if (! empty($array))
|
||||||
{
|
{
|
||||||
$object = false;
|
$object = false;
|
||||||
|
if (count($array)>0) {
|
||||||
|
$object = (object) array();
|
||||||
|
}
|
||||||
foreach ($array as $key => $value)
|
foreach ($array as $key => $value)
|
||||||
{
|
{
|
||||||
if ($key) $object->{$key} = $value;
|
if ($key) $object->{$key} = $value;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user