diff --git a/components/ILIAS/OrgUnit/classes/PathStorage/class.ilOrgUnitPathStorage.php b/components/ILIAS/OrgUnit/classes/PathStorage/class.ilOrgUnitPathStorage.php index f13c015391a9..ae3ec893bcdf 100755 --- a/components/ILIAS/OrgUnit/classes/PathStorage/class.ilOrgUnitPathStorage.php +++ b/components/ILIAS/OrgUnit/classes/PathStorage/class.ilOrgUnitPathStorage.php @@ -131,9 +131,9 @@ public static function getTextRepresentationOfOrgUnits(bool $sort_by_title = tru return ilOrgUnitPathStorage::getArray('ref_id', 'path'); } - public static function writePathByRefId(string $ref_id): void + public static function writePathByRefId(int $ref_id): void { - $original_ref_id = (int) $ref_id; + $original_ref_id = $ref_id; $names = self::getAllOrguNames(); $root_ref_id = ilObjOrgUnit::getRootOrgRefId(); $tree = ilObjOrgUnitTree::_getInstance();