Fix: use $array_key value instead

This commit is contained in:
Regis Houssin 2017-09-09 17:07:08 +02:00
parent db02c32a9f
commit 67e9b65a2e

View File

@ -421,9 +421,10 @@ class doc_generic_user_odt extends ModelePDFUser
} }
function get_substitutionarray_object($object,$outputlangs,$array_key='object') { function get_substitutionarray_object($object,$outputlangs,$array_key='object') {
$array_other=array();
foreach($object as $key => $value) { foreach($object as $key => $value) {
if (!is_array($value) && !is_object($value)) { if (!is_array($value) && !is_object($value)) {
$array_other['object_'.$key] = $value; $array_other[$array_key.'_'.$key] = $value;
} }
} }
return $array_other; return $array_other;