FIX : remove twice same test

This commit is contained in:
Florian HENRY 2015-09-22 12:03:11 +02:00
parent e85ddbb470
commit 178208918f

View File

@ -194,9 +194,6 @@ if (empty($reshook))
if ($result >= 0) if ($result >= 0)
{ {
if (empty($conf->global->MAIN_DISABLE_PDF_AUTOUPDATE)) if (empty($conf->global->MAIN_DISABLE_PDF_AUTOUPDATE))
{
// Define output language
if (empty($conf->global->MAIN_DISABLE_PDF_AUTOUPDATE))
{ {
$outputlangs = $langs; $outputlangs = $langs;
$newlang = ''; $newlang = '';
@ -211,7 +208,6 @@ if (empty($reshook))
$object->generateDocument($model, $outputlangs, $hidedetails, $hidedesc, $hideref); $object->generateDocument($model, $outputlangs, $hidedetails, $hidedesc, $hideref);
} }
}
} else { } else {
$langs->load("errors"); $langs->load("errors");
if (count($object->errors) > 0) setEventMessage($object->errors, 'errors'); if (count($object->errors) > 0) setEventMessage($object->errors, 'errors');