Skip to content

Commit

Permalink
Fix: Init var
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Feb 29, 2012
1 parent d812b0e commit b9705eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/admin/pdf.php
Expand Up @@ -224,13 +224,13 @@
$var=!$var;
print '<tr '.$bc[$var].'><td>'.$langs->trans("DictionnaryPaperFormat").'</td><td>';

$pdfformatlabel='';
if (empty($conf->global->MAIN_PDF_FORMAT))
{
include_once(DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php');
$pdfformatlabel=dol_getDefaultFormat();
}
else $pdfformatlabel=$conf->global->MAIN_PDF_FORMAT;

if (! empty($pdfformatlabel))
{
$sql="SELECT code, label, width, height, unit FROM ".MAIN_DB_PREFIX."c_paper_format";
Expand Down

0 comments on commit b9705eb

Please sign in to comment.