Skip to content

Commit

Permalink
38506: Admin > Magazin > Objekttypen im Magazin: str_pad(): Argument #1
Browse files Browse the repository at this point in the history
… () must be of type string, int given
  • Loading branch information
alex40724 committed Nov 15, 2023
1 parent de7d988 commit ff85b8f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -649,15 +649,15 @@ protected function saveModules(): void
}

foreach ($type_pos_map as $grp_id => $obj_types) {
$grp_pos = str_pad($grp_pos_map[$grp_id], 4, "0", STR_PAD_LEFT);
$grp_pos = str_pad((string) $grp_pos_map[$grp_id], 4, "0", STR_PAD_LEFT);

asort($obj_types);
$pos = 0;
foreach (array_keys($obj_types) as $obj_type) {
$pos += 10;
$type_pos = $grp_pos . str_pad((string) $pos, 4, "0", STR_PAD_LEFT);
$ilSetting->set("obj_add_new_pos_" . $obj_type, $type_pos);
$ilSetting->set("obj_add_new_pos_grp_" . $obj_type, $grp_id);
$ilSetting->set("obj_add_new_pos_" . $obj_type, (string) $type_pos);
$ilSetting->set("obj_add_new_pos_grp_" . $obj_type, (string) $grp_id);
}
}

Expand Down

0 comments on commit ff85b8f

Please sign in to comment.