Skip to content
Snippets Groups Projects
Commit 3e7cd9df authored by lbrun's avatar lbrun
Browse files

dev#25892_module_de_demande_de_consultation_sur_place : fix build error

parent 9203996e
Branches
Tags
8 merge requests!1553Master,!1502Master,!1501Stable,!1363Master,!1362Master,!1360Master,!1356Dev#25892 module de demande de consultation sur place,!1342Dev#25892 module de demande de consultation sur place
......@@ -39,7 +39,7 @@ class ZendAfi_View_Helper_Notice_ConsultationLink extends ZendAfi_View_Helper_Ba
public function renderItemOn($ex, $html) {
if (1 == $this->_bib->getInterdireResa())
return $this->_renderCellWith(' ');
if (!$ex['reservable'])
if (!isset($ex['consultation']) || !$ex['consultation'])
return $this->_renderCellWith(' ');
return $this->_renderCellWith($this->_renderAjaxOn($ex));
......
......@@ -44,7 +44,7 @@ class ZendAfi_View_Helper_Notice_ReservationLink extends ZendAfi_View_Helper_Bas
if (!$type_comm)
return $this->_renderCellWith($this->_renderStandardOn($ex));
if (!$ex['reservable'])
if (!isset($ex['reservable']) || !$ex['reservable'])
return $this->_renderCellWith(' ');
return $this->_renderCellWith($this->_renderAjaxOn($ex));
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment