Skip to content

Commit 1fd9f16

Browse files
committed
[FIX] 0031033: Update fails from ILIAS 5.3 to 5.4
1 parent 8edf833 commit 1fd9f16

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

Modules/OrgUnit/classes/Positions/UserAssignment/class.ilOrgUnitUserAssignment.php

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
use ILIAS\DI\Container;
4+
35
/**
46
* Class ilOrgUnitUserAssignment
57
*
@@ -83,6 +85,12 @@ public static function findOrCreateAssignment($user_id, $position_id, $orgu_id)
8385
protected function raiseEvent(string $event)
8486
{
8587
global $DIC;
88+
/**
89+
* @var $DIC Container
90+
*/
91+
if(!$DIC->offsetExists('ilAppEventHandler')) {
92+
return;
93+
}
8694
$ilAppEventHandler = $DIC['ilAppEventHandler'];
8795
$ilAppEventHandler->raise('Modules/OrgUnit', $event, array(
8896
'obj_id' => $this->getOrguId(),

setup/sql/dbupdate_04.php

-4
Original file line numberDiff line numberDiff line change
@@ -21099,10 +21099,6 @@ function writeCtrlClassEntry(ilPluginSlot $slot, array $plugin_data)
2109921099
?>
2110021100
<#5251>
2110121101
<?php
21102-
global $DIC;
21103-
if (!$DIC->offsetExists("ilAppEventHandler")) {
21104-
$DIC->offsetSet("ilAppEventHandler", new ilAppEventHandler());
21105-
}
2110621102
$set = $ilDB->query("
2110721103
SELECT obj_id, title, description, role_id, usr_id FROM object_data
2110821104
INNER JOIN role_data role ON role.role_id = object_data.obj_id

0 commit comments

Comments
 (0)