Fix no pdf generation if pdf template not activated

This commit is contained in:
Laurent Destailleur 2016-11-14 01:32:04 +01:00
parent c34081cf53
commit 6eb16f66e0

View File

@ -572,7 +572,7 @@ if (empty($reshook))
if ($result > 0)
{
// Define output language
if (empty($conf->global->MAIN_DISABLE_PDF_AUTOUPDATE))
if (empty($conf->global->MAIN_DISABLE_PDF_AUTOUPDATE) && ! empty($conf->global->CONTRACT_ADDON_PDF)) // No generation if default type not defined
{
$outputlangs = $langs;
$newlang = '';