FIX avoid warning php 8.0

This commit is contained in:
Regis Houssin
2020-12-29 16:25:29 +01:00
parent 6e0832fb38
commit 20cd9cbbc7
4 changed files with 19 additions and 19 deletions

View File

@@ -254,7 +254,7 @@ class modStock extends DolibarrModules
$this->export_sql_end[$r] .= ' AND e.entity IN ('.getEntity('stock').')';
// Export stock including batch number
if ($conf->productbatch->enabled)
if (!empty($conf->productbatch->enabled))
{
$langs->load("productbatch");