diff --git a/htdocs/includes/modules/propale/pdf_propale_azur.modules.php b/htdocs/includes/modules/propale/pdf_propale_azur.modules.php index 3e512438bc7..d32e9fc6557 100644 --- a/htdocs/includes/modules/propale/pdf_propale_azur.modules.php +++ b/htdocs/includes/modules/propale/pdf_propale_azur.modules.php @@ -150,18 +150,18 @@ class pdf_propale_azur extends ModelePDFPropales { $nblignes = sizeof($propale->lignes); - // Protection et encryption du pdf - if ($conf->global->PDF_SECURITY_ENCRYPTION) - { - $pdf=new FPDI_Protection('P','mm',$this->format); - $pdfrights = array('print'); // Ne permet que l'impression du document - $pdfuserpass = ''; // Mot de passe pour l'utilisateur final - $pdfownerpass = NULL; // Mot de passe du propriétaire, créé aléatoirement si pas défini - $pdf->SetProtection($pdfrights,$pdfuserpass,$pdfownerpass); - } - else - { - $pdf=new FPDI('P','mm',$this->format); + // Protection et encryption du pdf + if ($conf->global->PDF_SECURITY_ENCRYPTION) + { + $pdf=new FPDI_Protection('P','mm',$this->format); + $pdfrights = array('print'); // Ne permet que l'impression du document + $pdfuserpass = ''; // Mot de passe pour l'utilisateur final + $pdfownerpass = NULL; // Mot de passe du propriétaire, créé aléatoirement si pas défini + $pdf->SetProtection($pdfrights,$pdfuserpass,$pdfownerpass); + } + else + { + $pdf=new FPDI('P','mm',$this->format); } $pdf->Open(); diff --git a/htdocs/index.php b/htdocs/index.php index 92b3905198c..a11c06db02a 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -624,6 +624,7 @@ if (sizeof($boxarray)) if ($conf->use_ajax && $conf->browser->firefox) { print ''."\n"; } diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 0dc5999d556..d558f01f455 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -662,7 +662,9 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0) if (! $disablejs && $conf->use_ajax) { print ''."\n"; - print ''."\n"; + print ''."\n"; + print ''."\n"; + print ''."\n"; print ''."\n"; }