Fix #3905: accountTopMenu renders redundant <li> tag

This commit is contained in:
buddh4 2020-03-11 13:09:34 +01:00
parent 500ac8c3c2
commit 66891348e9
2 changed files with 4 additions and 2 deletions

View File

@ -4,6 +4,7 @@ HumHub Change Log
1.4.4 (Unreleased)
---------------------
- Fix #3908: `DateHelper::parseDateTime()` returns invalid date if given value is not parsable
- Fix #3905: `accountTopMenu` renders redundant `<li>` tag
1.4.3 (March 4, 2020)
---------------------

View File

@ -6,6 +6,7 @@
* @license https://www.humhub.com/licences
*/
use humhub\modules\ui\menu\DropdownDivider;
use humhub\widgets\FooterMenu;
use \yii\helpers\Html;
use \yii\helpers\Url;
@ -50,9 +51,9 @@ $userModel = Yii::$app->user->identity;
</a>
<ul class="dropdown-menu pull-right">
<?php foreach ($entries as $entry): ?>
<li>
<?php if(!($entry instanceof DropdownDivider)) : ?><li><?php endif; ?>
<?= $entry->render() ?>
</li>
<?php if(!($entry instanceof DropdownDivider)) : ?></li><?php endif; ?>
<?php endforeach; ?>
<?= FooterMenu::widget(['location' => FooterMenu::LOCATION_ACCOUNT_MENU]); ?>
</ul>