diff --git a/core/class/layout.class.php b/core/class/layout.class.php index ea4699f..5e7f9c8 100644 --- a/core/class/layout.class.php +++ b/core/class/layout.class.php @@ -509,6 +509,14 @@ class layout extends common $this->getUser('group') === self::GROUP_MEMBER && $this->getData(['theme', 'menu', 'memberBar']) === true ) { + if ($this->getCoursesByUser($this->getUser('id'), $this->getUser('group'))) { + $itemsRight .= '
  • '; + } if ( ($this->getUser('group') >= self::GROUP_MEMBER && $this->getUser('permission', 'filemanager') === true) diff --git a/core/core.php b/core/core.php index dc22b42..0df83a3 100644 --- a/core/core.php +++ b/core/core.php @@ -50,7 +50,7 @@ class common const ACCESS_TIMER = 1800; // Numéro de version - const ZWII_VERSION = '1.4.08'; + const ZWII_VERSION = '1.4.09'; // URL autoupdate const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/campus-update/raw/branch/master/'; @@ -1439,7 +1439,7 @@ class common case self::GROUP_VISITOR: foreach ($c as $courseId => $value) { $students = $this->getData(['enrolment', $courseId]); - if (is_array($students[$userId]) === false) { + if (isset($students[$userId]) === false) { unset($c[$courseId]); } } diff --git a/core/layout/common.css b/core/layout/common.css index ad5792f..09e6ae3 100644 --- a/core/layout/common.css +++ b/core/layout/common.css @@ -604,6 +604,18 @@ nav li ul li { text-align: left; } +nav li ul #barSelectCourse { + text-align: left; +} +nav #barSelectCourse { + width: 150px; + border: 0; + color: #111112; + font-size: 1em; + background-color: rgba(255, 255, 255, 1); + padding: 8px; + margin-top: 5px; +} /* nav .navSub a{