forked from Wavyzz/dolibarr
Fix warnings
This commit is contained in:
@@ -628,7 +628,6 @@ function reWriteAllPermissions($file, $permissions, $key, $right, $objectname, $
|
||||
'@phan-var-force array<int,string[]> $permissions';
|
||||
if (!$error) {
|
||||
// prepare permissions array
|
||||
$count_perms = count($permissions);
|
||||
foreach (array_keys($permissions) as $i) {
|
||||
$permissions[$i][0] = "\$this->rights[\$r][0] = \$this->numero . sprintf('%02d', \$r + 1)";
|
||||
$permissions[$i][1] = "\$this->rights[\$r][1] = '".$permissions[$i][1]."'";
|
||||
|
||||
Reference in New Issue
Block a user