2
0
forked from Wavyzz/dolibarr

Test format to removed scope warnings

This commit is contained in:
Laurent Destailleur
2011-12-30 14:27:18 +01:00
parent e97078f6c1
commit fd7d2fe667

View File

@@ -154,7 +154,7 @@ if ($action == 'set')
{
}
// else dol_print_error($db);
// else dol_print_error($db);
}
if ($action == 'del')
@@ -168,7 +168,7 @@ if ($action == 'del')
{
}
// else dol_print_error($db);
// else dol_print_error($db);
}
if ($action == 'setdoc')
@@ -238,6 +238,8 @@ if ($action == 'set_SUPPLIER_INVOICE_FREE_TEXT')
$mesg = "<font class=\"error\">".$langs->trans("Error")."</font>";
}
}
/*
* View
*/
@@ -302,7 +304,9 @@ foreach ($conf->file->dol_document_root as $dirroot)
// Show example of numbering module
print '<td nowrap="nowrap">';
$tmp=$module->getExample();
if (preg_match('/^Error/',$tmp)) { $langs->load("errors"); print '<div class="error">'.$langs->trans($tmp).'</div>'; }
if (preg_match('/^Error/',$tmp)) {
$langs->load("errors"); print '<div class="error">'.$langs->trans($tmp).'</div>';
}
elseif ($tmp=='NotConfigured') print $langs->trans($tmp);
else print $tmp;
print '</td>'."\n";
@@ -641,7 +645,7 @@ print '</form>';
dol_htmloutput_mesg($mesg);
$db->close();
llxFooter();
$db->close();
?>