Fix: avoid warning

This commit is contained in:
Regis Houssin 2017-09-08 12:52:56 +02:00
parent 835cd43565
commit d4c20a919d

View File

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