Skip to content

Commit

Permalink
LSO: Fix for Mantis #35956
Browse files Browse the repository at this point in the history
Missing cast to int
  • Loading branch information
tbongers-cat authored and klees committed Jun 1, 2023
1 parent a073c61 commit 0ea99c1
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

declare(strict_types=1);

/**
* This file is part of ILIAS, a powerful learning management system
* published by ILIAS open source e-Learning e.V.
Expand All @@ -17,6 +15,7 @@
* https://github.com/ILIAS-eLearning
*
*********************************************************************/
declare(strict_types=1);

class ilLearningSequenceParticipantsTableGUI extends ilParticipantTableGUI
{
Expand Down Expand Up @@ -151,7 +150,7 @@ protected function fillRow(array $a_set): void
break;
case 'org_units':
$this->tpl->setCurrentBlock('custom_fields');
$this->tpl->setVariable('VAL_CUST', ilOrgUnitPathStorage::getTextRepresentationOfUsersOrgUnits($a_set['usr_id']));
$this->tpl->setVariable('VAL_CUST', ilOrgUnitPathStorage::getTextRepresentationOfUsersOrgUnits((int) $a_set['usr_id']));
$this->tpl->parseCurrentBlock();
break;
default:
Expand Down Expand Up @@ -337,7 +336,7 @@ public function parse(): void
) {
$org_unit = $this->current_filter['org_units'];
$title = ilObjectFactory::getInstanceByRefId($org_unit)->getTitle();
$user_units = ilOrgUnitPathStorage::getTextRepresentationOfUsersOrgUnits($user_id);
$user_units = ilOrgUnitPathStorage::getTextRepresentationOfUsersOrgUnits((int) $user_id);
if (strpos($user_units, $title) === false) {
continue;
}
Expand Down

0 comments on commit 0ea99c1

Please sign in to comment.