Browse Source

Menu [Class]: Reslove PHP 8.1 warning on mobile devices.

fusionate 2 years ago
parent
commit
5516fe0047
1 changed files with 1 additions and 1 deletions
  1. 1 1
      resources/classes/menu.php

+ 1 - 1
resources/classes/menu.php

@@ -941,7 +941,7 @@ if (!class_exists('menu')) {
 
 			//begin navbar code
 				$html = "<nav class='navbar navbar-expand-sm ".$menu_type."' ".$menu_corners.">\n";
-				$html .= "	<div class='container-fluid' style='width: ".$menu_width."; padding: 0;'>\n";
+				$html .= "	<div class='container-fluid' style='width: ".($menu_width ?? '100%')."; padding: 0;'>\n";
 				$html .= "		<div class='navbar-brand'>\n";
 
 				if ($menu_brand) {