Skip to content

Commit ed3796e

Browse files
committed
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.
1 parent 91624b8 commit ed3796e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

install/sql/ispconfig3.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1328,7 +1328,7 @@ INSERT INTO `sys_ini` (`sysini_id`, `config`) VALUES (1, '');
13281328
-- Dumping data for table `sys_user`
13291329
--
13301330

1331-
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);
1331+
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);
13321332

13331333
-- --------------------------------------------------------
13341334

interface/web/nav.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
//** Side Naviation
8181
if(isset($_GET['nav']) && $_GET['nav'] == 'side') {
8282

83-
if(is_file($_SESSION['s']['module']['name'].'/lib/custom_menu.inc.php')) {
83+
if(isset($_SESSION['s']['module']['name']) && is_file($_SESSION['s']['module']['name'].'/lib/custom_menu.inc.php')) {
8484
include_once($_SESSION['s']['module']['name'].'/lib/custom_menu.inc.php');
8585
} else {
8686

0 commit comments

Comments
 (0)