diff --git a/libs/classes/Classe.lib.php b/libs/classes/Classe.lib.php index d320c55..06e4b02 100644 --- a/libs/classes/Classe.lib.php +++ b/libs/classes/Classe.lib.php @@ -35,6 +35,11 @@ class Classe { } public function haveBulletins(){ - return sizeof($this->bulletins) > 0; + foreach ($this->bulletins as $bulletin) { + if ( $bulletin->isVisible() ) { + return true; + } + return false; + } } } \ No newline at end of file