This commit is contained in:
Rodolphe Quiedeville
2007-04-13 15:44:01 +00:00
parent 2e12bed112
commit 3128ef4f87

View File

@@ -37,7 +37,10 @@ if ($_GET["id"] > 0)
{
require_once(DOL_DOCUMENT_ROOT.'/docs/document.class.php');
$doc = new Document($db);
$doc->Generate($_GET["id"]);
if ($doc->Generate($_GET["id"]) == 0)
{
Header("Location: index.php");
}
}
llxHeader();