diff --git a/library/ZendAfi/View/Helper/Notice/Exemplaires.php b/library/ZendAfi/View/Helper/Notice/Exemplaires.php index b8074fc953413542adce6764f47e6d23846b4018..7e771ae847ed28393edf2e0a6e198888fef21b4c 100644 --- a/library/ZendAfi/View/Helper/Notice/Exemplaires.php +++ b/library/ZendAfi/View/Helper/Notice/Exemplaires.php @@ -81,7 +81,7 @@ class ZendAfi_View_Helper_Notice_Exemplaires extends Zend_View_Helper_HtmlElemen if($ex["dispo"] == Class_WebService_SIGB_Exemplaire::DISPO_LIBRE){ $class_dispo = 'disponible'; } - if ($nb_resa=$ex['nb_resa']>0) + if ( isset($ex['nb_resa']) && $nb_resa=$ex['nb_resa']>0) $ex['dispo'].=' '.$this->view->_plural($nb_resa,'','%s réservation','%s réservations',$nb_resa).' en cours'; $html.='<td class="dispo '.$class_dispo.'">'.$ex["dispo"].'</td>'; }