From 4781f69a32eea2ec9a7bd42c50f07aacbeeca3ba Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Mon, 3 Mar 2014 14:14:12 +0000 Subject: [PATCH] issue #0001541 : Quelques petites corrections --- application/controllers/PiecesController.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/application/controllers/PiecesController.php b/application/controllers/PiecesController.php index 86e38188a..9fd5d476e 100644 --- a/application/controllers/PiecesController.php +++ b/application/controllers/PiecesController.php @@ -215,12 +215,12 @@ class PiecesController extends Zend_Controller_Action $nbPage = 0; if ( $item->FileNumberOfPages > 0 ) { $nbPage = $item->FileNumberOfPages; - } elseif ( $item->ActeNumberOfPage > 0 ) { - $nbPage = $item->ActeNumberOfPage; + } elseif ( $item->ActeNumberOfPages > 0 ) { + $nbPage = $item->ActeNumberOfPages; } if( $nbPage > 1 ) { $data.= '
Document de '.$nbPage.' pages.'; - } elseif( $nbPage ==1) { + } elseif( $nbPage == 1 ) { $data.= '
Document de '.$nbPage.' page.'; } @@ -409,7 +409,7 @@ class PiecesController extends Zend_Controller_Action //Télécharger le fichier case 'T': $response = $ws->getPiecesBilan($siren, $type, $mode, $dateCloture); - if ($response===false) { + if ( $response === false || $response == '' ) { $this->view->assign('msg', "Fichier introuvable."); } else { try { @@ -506,7 +506,7 @@ class PiecesController extends Zend_Controller_Action //Enregistrement de la commande $response = $ws->getPiecesActe($siren, $mode, $depotNum, $depotDate, $acteType, $acteNum, $acteDate, $ref); if ($response===false) { - $this->view->assign('msg', "Erreur lors du passage de la commande."); + $this->view->assign('msg',"Erreur lors du passage de la commande."); } else { $this->view->assign('msg',"Enregistrement de votre commande sous la référence ".strtoupper($response)."."); } @@ -515,7 +515,7 @@ class PiecesController extends Zend_Controller_Action //Télécharger le fichier case 'T': $response = $ws->getPiecesActe($siren, $mode, $depotNum, $depotDate, $acteType, $acteNum, $acteDate); - if ($response===false) { + if ( $response === false || $response == '' ) { $this->view->assign('msg', "Fichier introuvable."); } else { try {