소스 검색

Fix. Use default value in function definition.

On `themes/default/template.php` it called without args
```PHP
$menu_array = $menu->menu_array();
```

And it produce PHP warning.
Alexey Melnichuk 9 년 전
부모
커밋
b1f8eda06d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      resources/classes/menu.php

+ 1 - 1
resources/classes/menu.php

@@ -384,7 +384,7 @@
 			} //end function
 
 		//create the menu array
-			public function menu_array($sql, $menu_item_level) {
+			public function menu_array($sql = '', $menu_item_level = 0) {
 
 				//get the database connnection
 					$db = $this->db;