From 0cbd786d18661adafeae5037ec62068ffb70e93b Mon Sep 17 00:00:00 2001 From: Damien LASSERRE Date: Wed, 6 Apr 2011 13:42:55 +0000 Subject: [PATCH] --- includes/giant/RapportGiant.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/giant/RapportGiant.php b/includes/giant/RapportGiant.php index 6c11e665d..f78ff46f4 100644 --- a/includes/giant/RapportGiant.php +++ b/includes/giant/RapportGiant.php @@ -54,8 +54,8 @@ $rapportExists = Doctrine_Query::create() ->andWhere('DataSetType = "'. $_GET['type'].'"') ->fetchOne(); -if (!file_exists($rapportExists->UrlObjectRapportFile)) { - echo 'rentre';exit; +if (empty($rapportExists->CompanyId)) { + $nameFileRapport = 'rapport-'.date('Y-m-d').'-'.$_GET['pays'].'-'.$_GET['company'].'-'.$_GET['type']; $soap_client2 = getClient($_GET['pays'], 'RetrieveDataSet');