Commit c6230ed2 authored by Hoto Cocoa's avatar Hoto Cocoa

Fix

parent 1e32becf
Pipeline #38021304 failed with stage
in 1 minute and 10 seconds
......@@ -744,7 +744,7 @@ class LibertyTemplate extends BaseTemplate {
}
echo Html::closeElement( 'a' );
if ( is_array( $content['children'] ) && count( $content['children'] ) > 2 ) {
if ( is_array( $content['children'] ) && count( $content['children'] ) > 2 && !empty( $child['children'] ) ) {
echo Html::openElement( 'div', [
'class' => 'dropdown-menu dropdown-submenu',
'role' => 'menu'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment