FIX : Avoid warning strict mode when hosting server do not have

php5_curl installed
This commit is contained in:
Florian HENRY 2015-07-27 22:34:30 +02:00
parent d78292b9af
commit 517e9094da

View File

@ -251,7 +251,9 @@ function dol_json_decode($json, $assoc=false)
if (! empty($array))
{
$object = false;
if (count($array)>0) {
$object = (object) array();
}
foreach ($array as $key => $value)
{
if ($key) $object->{$key} = $value;