Skip to content

Commit

Permalink
Fix issue if $logo value is not null
Browse files Browse the repository at this point in the history
  • Loading branch information
sonvnn committed Nov 12, 2024
1 parent 7c45505 commit 8520cd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/library/astroid/Component/Menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public static function getMenu($menutype = '', $nav_class = [], $logo = null, $l
}
}

if (count($list) == 1 && $logo_position == 1 && $logo !== null) {
if (count($list) == 1 && $logo_position == 1 && !empty($logo)) {
echo '<li class="nav-item nav-stacked-logo text-center">';
$document->include('logo');
echo '</li>';
Expand Down

0 comments on commit 8520cd1

Please sign in to comment.