@@ -925,8 +925,9 @@ public function get_substitutionarray_lines($line, $outputlangs, $linenumber = 0
925
925
array ('line_date_end_rfc ' , 'date_end ' , 'dayrfc ' , 'auto ' , null )
926
926
);
927
927
foreach ($ date_specs as $ date_spec ) {
928
- if (property_exists ($ line , $ date_spec [1 ])) {
929
- $ resarray [$ date_spec [0 ]] = dol_print_date ($ line ->$ {$ date_spec [1 ]}, $ date_spec [2 ], $ date_spec [3 ], $ date_spec [4 ]);
928
+ $ propertyname = $ date_spec [1 ];
929
+ if (property_exists ($ line , $ propertyname )) {
930
+ $ resarray [$ date_spec [0 ]] = dol_print_date ($ line ->$ propertyname , $ date_spec [2 ], $ date_spec [3 ], $ date_spec [4 ]);
930
931
}
931
932
}
932
933
@@ -1082,9 +1083,9 @@ public function get_substitutionarray_shipment($object, $outputlangs, $array_key
1082
1083
* Define array with couple substitution key => substitution value
1083
1084
*
1084
1085
* @param array<string,CommonObject|float|int|string> $object Dolibarr Object
1085
- * @param Translate $outputlangs Language object for output
1086
- * @param boolean|int $recursive Want to fetch child array or child object.
1087
- * @return array<string,mixed> Array of substitution key->code
1086
+ * @param Translate $outputlangs Language object for output
1087
+ * @param boolean|int $recursive Want to fetch child array or child object.
1088
+ * @return array<string,mixed> Array of substitution key->code
1088
1089
*/
1089
1090
public function get_substitutionarray_each_var_object (&$ object , $ outputlangs , $ recursive = 1 )
1090
1091
{
0 commit comments