diff --git a/library/ZendAfi/View/Helper/Notice/ExemplairesTable.php b/library/ZendAfi/View/Helper/Notice/ExemplairesTable.php index 87a5b2ee681f9168c69b14d537671476546e0844..8257487e01ccea341968149bbbb99e3385e3c54e 100644 --- a/library/ZendAfi/View/Helper/Notice/ExemplairesTable.php +++ b/library/ZendAfi/View/Helper/Notice/ExemplairesTable.php @@ -106,10 +106,7 @@ abstract class ZendAfi_View_Helper_Notice_ExemplairesTable_LibraryOrAnnex extend if(!$user = Class_Users::getIdentity()) return $this->_bookmarkLink($this->_getId()); - if(!$user_libraries = $user->getBookmarkedLibraries()) - return ''; - - foreach($user_libraries as $annex_or_lib) { + foreach($user->getBookmarkedLibraries() as $annex_or_lib) { $annex_or_lib_id = $annex_or_lib->getId(); if($this->_getId() == $annex_or_lib_id) return $this->_unbookmarkLink($annex_or_lib_id);