Warning: count(): Parameter must be an array or an object

This commit is contained in:
Philippe GRAND 2022-12-24 15:37:36 +01:00
parent d3a0ad0687
commit 344c241970

View File

@ -1567,7 +1567,9 @@ function dol_meta_create($object)
}
if (is_dir($dir)) {
if (is_countable($object->lines) && count($object->lines) > 0) {
$nblines = count($object->lines);
}
$client = $object->thirdparty->name." ".$object->thirdparty->address." ".$object->thirdparty->zip." ".$object->thirdparty->town;
$meta = "REFERENCE=\"".$object->ref."\"
DATE=\"" . dol_print_date($object->date, '')."\"