diff options
Diffstat (limited to 'modules-available/permissionmanager/install.inc.php')
-rw-r--r-- | modules-available/permissionmanager/install.inc.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules-available/permissionmanager/install.inc.php b/modules-available/permissionmanager/install.inc.php index 9ff5a2d4..292a5f52 100644 --- a/modules-available/permissionmanager/install.inc.php +++ b/modules-available/permissionmanager/install.inc.php @@ -199,8 +199,10 @@ if (Database::exec("INSERT INTO `role` (roleid, rolename, builtin, roledescripti (2,'webinterface.*')"); Database::exec("OPTIMIZE TABLE role_x_permission"); // Assign the first user to the superadmin role (if one exists) - Database::exec("INSERT IGNORE INTO `role_x_user` VALUES (1,1)"); - $res[] = UPDATE_DONE; + $num = Database::exec("INSERT IGNORE INTO `role_x_user` VALUES (1,1)"); + if ($num > 0) { + $res[] = UPDATE_DONE; + } } // |