From 3a980587b8a8799516252641bbb824acab4d130d Mon Sep 17 00:00:00 2001 From: gloas <gloas@afi-sa.fr> Date: Thu, 17 May 2018 14:09:30 +0200 Subject: [PATCH] dev #72845 fix errors --- .../ZendAfi/View/Helper/DigitalResource/Dashboard/Harvest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/ZendAfi/View/Helper/DigitalResource/Dashboard/Harvest.php b/library/ZendAfi/View/Helper/DigitalResource/Dashboard/Harvest.php index a7f435f219a..61516be7bb2 100644 --- a/library/ZendAfi/View/Helper/DigitalResource/Dashboard/Harvest.php +++ b/library/ZendAfi/View/Helper/DigitalResource/Dashboard/Harvest.php @@ -26,7 +26,7 @@ class ZendAfi_View_Helper_DigitalResource_Dashboard_Harvest extends ZendAfi_View public function DigitalResource_Dashboard_Harvest($config) { $html = [$this->_tag('h3', $this->_('Diagnostic moissonnage'))]; - if(!$batch_name = $config->getBatch()) { + if(!$config->getBatch()) { $html [] = $this->_tagNotice($this->_('Cette ressource ne prend pas en charge le moissonnage')) ; return implode($html); } @@ -66,6 +66,7 @@ class ZendAfi_View_Helper_DigitalResource_Dashboard_Harvest extends ZendAfi_View protected function _getBatchHtml($config) { + $batch_name = $config->getBatch(); if(!$batch = Class_Batch::findFirstBy(['type' => $batch_name])) return implode([$this->_tagWarning($this->_('Le moissonnage n\'est pas programmé')), $this->view->button((new Class_Entity()) -- GitLab