Merge pull request #3564 from FHenry/3.8

FIX : remove twice same test
This commit is contained in:
Laurent Destailleur 2015-09-23 00:07:28 +02:00
commit 00b858e644

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');