Skip to content

Commit

Permalink
casting arg #1 of str_pad to 'string'
Browse files Browse the repository at this point in the history
occured TypeError:

TypeError thrown with message "str_pad(): Argument #1 ($string) must be of type string, int given"

Stacktrace:
ILIAS-eLearning#7 TypeError in /srv/www/9/trunk9/Services/Object/classes/class.ilObjectDefinition.php:74
ILIAS-eLearning#6 str_pad in /srv/www/9/trunk9/Services/Object/classes/class.ilObjectDefinition.php:74
[...]
  • Loading branch information
utesche authored and kergomard committed Sep 6, 2023
1 parent c166bd0 commit 1d25492
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Services/Object/classes/class.ilObjectDefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ protected function readDefinitionDataFromCache(): void
"rbac" => $rec["rbac"],
"group" => $rec["grp"],
"system" => $rec["system"],
"default_pos" => "9999" . str_pad($rec["default_pos"], 4, "0", STR_PAD_LEFT), // "unassigned" group
"default_pos" => "9999" . str_pad((string) $rec["default_pos"], 4, "0", STR_PAD_LEFT), // "unassigned" group
"sideblock" => $rec["sideblock"],
'export' => $rec['export'],
'repository' => $rec['repository'],
Expand Down

0 comments on commit 1d25492

Please sign in to comment.