Skip to content

Commit

Permalink
FIX syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
hregis committed Apr 2, 2024
1 parent bcb641a commit 97eb0fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/core/modules/DolibarrModules.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1906,7 +1906,7 @@ public function insert_permissions($reinitadminperms = 0, $force_entity = null,

$r_default = $this->rights[$key][Rights::KEY_OLD_DEFAULT] ?? (isset($this->rights[$key][Rights::KEY_DEFAULT]) ? ((int) $this->rights[$key][Rights::KEY_DEFAULT]) : 0);
$r_perms = $this->rights[$key][Rights::KEY_OLD_FIRST_LEVEL] ?? $this->rights[$key][Rights::KEY_FIRST_LEVEL];
$r_subperms = $this->rights[$key][Rights::KEY_OLD_SECOND_LEVEL] ?? (isset($this->rights[$key][Rights::KEY_SECOND_LEVEL]) ? $this->rights[$key][Rights::KEY_SECOND_LEVEL] : ''));
$r_subperms = $this->rights[$key][Rights::KEY_OLD_SECOND_LEVEL] ?? (isset($this->rights[$key][Rights::KEY_SECOND_LEVEL]) ? $this->rights[$key][Rights::KEY_SECOND_LEVEL] : '');

// if subperms is defined but perms is not defined, subperms must be empty
if (empty($r_perms)) {
Expand Down

0 comments on commit 97eb0fa

Please sign in to comment.