_Pascal13950_
New Member
Hi all
I have an error when saving a form.
I looked the code and the problem seems to be in lib_fabrik\fabrik\Helpers\ArrayHelper.php
See the function :
public static function toObject(&$array, $class = 'stdClass', $recurse = true)
foreach ($array as $k => $v)
{
$obj->$k = self::toObject($v, $class);
}
In my case, $k refers to an empty string and so the error is launched.
Could someone tells me why it's possible to have an no named key here ?
Thanks in advance
I have an error when saving a form.
I looked the code and the problem seems to be in lib_fabrik\fabrik\Helpers\ArrayHelper.php
See the function :
public static function toObject(&$array, $class = 'stdClass', $recurse = true)
foreach ($array as $k => $v)
{
$obj->$k = self::toObject($v, $class);
}
In my case, $k refers to an empty string and so the error is launched.
Could someone tells me why it's possible to have an no named key here ?
Thanks in advance