Commit ed3796ed authored by tbrehm's avatar tbrehm

Fixed a small bug in the nav.php which tries to lookup a custom module config...

Fixed a small bug in the nav.php which tries to lookup a custom module config file even if no module is selected and  enabled the dashboard module for the admin user by default after installation.
parent 91624b8a
......@@ -1328,7 +1328,7 @@ INSERT INTO `sys_ini` (`sysini_id`, `config`) VALUES (1, '');
-- Dumping data for table `sys_user`
--
INSERT INTO `sys_user` (`userid`, `sys_userid`, `sys_groupid`, `sys_perm_user`, `sys_perm_group`, `sys_perm_other`, `username`, `passwort`, `modules`, `startmodule`, `app_theme`, `typ`, `active`, `language`, `groups`, `default_group`, `client_id`) VALUES (1, 1, 0, 'riud', 'riud', '', 'admin', '21232f297a57a5a743894a0e4a801fc3', 'admin,client,mail,monitor,sites,dns,tools,help', 'mail', 'default', 'admin', 1, 'en', '1,2', 1, 0);
INSERT INTO `sys_user` (`userid`, `sys_userid`, `sys_groupid`, `sys_perm_user`, `sys_perm_group`, `sys_perm_other`, `username`, `passwort`, `modules`, `startmodule`, `app_theme`, `typ`, `active`, `language`, `groups`, `default_group`, `client_id`) VALUES (1, 1, 0, 'riud', 'riud', '', 'admin', '21232f297a57a5a743894a0e4a801fc3', 'dashboard,admin,client,mail,monitor,sites,dns,tools,help', 'dashboard', 'default', 'admin', 1, 'en', '1,2', 1, 0);
-- --------------------------------------------------------
......
......@@ -80,7 +80,7 @@ if(isset($_GET['nav']) && $_GET['nav'] == 'top') {
//** Side Naviation
if(isset($_GET['nav']) && $_GET['nav'] == 'side') {
if(is_file($_SESSION['s']['module']['name'].'/lib/custom_menu.inc.php')) {
if(isset($_SESSION['s']['module']['name']) && is_file($_SESSION['s']['module']['name'].'/lib/custom_menu.inc.php')) {
include_once($_SESSION['s']['module']['name'].'/lib/custom_menu.inc.php');
} else {
......
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