diff --git a/htdocs/comm/action/rapport/index.php b/htdocs/comm/action/rapport/index.php index a3af5495c2b..c613b0e4ef5 100644 --- a/htdocs/comm/action/rapport/index.php +++ b/htdocs/comm/action/rapport/index.php @@ -19,7 +19,6 @@ * * $Id$ * $Source$ - * */ /** @@ -57,13 +56,13 @@ if ($user->societe_id > 0) if ($_GET["action"] == 'builddoc') { $cat = new CommActionRapport($db, $_GET["month"], $_GET["year"]); - $cat->generate($_GET["id"]); + $result=$cat->generate($_GET["id"]); } if ($action=='delete_action') { $actioncomm = new ActionComm($db); - $actioncomm->delete($actionid); + $result=$actioncomm->delete($actionid); } diff --git a/htdocs/comm/action/rapport/rapport.pdf.php b/htdocs/comm/action/rapport/rapport.pdf.php index 2d5d485b1be..e77c5e1bb53 100644 --- a/htdocs/comm/action/rapport/rapport.pdf.php +++ b/htdocs/comm/action/rapport/rapport.pdf.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004-2005 Laurent Destailleur + * Copyright (C) 2004-2006 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -69,7 +69,7 @@ class CommActionRapport global $user,$conf,$langs; $dir = $conf->action->dir_temp."/"; - $file = $dir . "/actions-".$this->month."-".$this->year.".pdf"; + $file = $dir . "actions-".$this->month."-".$this->year.".pdf"; if (! file_exists($dir)) {