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.
This commit is contained in:
Alexey Melnichuk
2016-03-30 09:39:15 +03:00
parent fa0f310d97
commit ec95fc5f24

View File

@@ -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;