Remove unused $nblines assignment

Fixes the following warning received when attempting to generate a warehouse stock document using the default template:
`count(): Parameter must be an array or an object that implements Countable in /var/www/html/core/modules/stock/doc/pdf_standard.modules.php on line 211`.

$nblines is subsequently assigned on line 326, after which it is then used.
This commit is contained in:
Maksim Stojkovic 2021-09-17 23:50:00 +10:00 committed by GitHub
parent 7a9ea1e8e0
commit 44ff73f5de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -208,8 +208,6 @@ class pdf_standard extends ModelePDFStock
// Load traductions files required by page
$outputlangs->loadLangs(array("main", "dict", "companies", "bills", "stocks", "orders", "deliveries"));
$nblines = count($object->lines);
if ($conf->stock->dir_output) {
// Definition of $dir and $file
if ($object->specimen) {