Commit 90bd5a4 1 parent ee13c97 commit 90bd5a4 Copy full SHA for 90bd5a4
File tree 1 file changed +4
-2
lines changed
Services/Tracking/classes
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- declare (strict_types=0 );
4
3
/**
5
4
* This file is part of ILIAS, a powerful learning management system
6
5
* published by ILIAS open source e-Learning e.V.
17
16
*
18
17
*********************************************************************/
19
18
19
+ declare (strict_types=0 );
20
+
20
21
/**
21
22
* Abstract class ilLPStatus for all learning progress modes
22
23
* E.g ilLPStatusManual, ilLPStatusObjectives ...
@@ -889,8 +890,9 @@ protected static function checkLPModesForObjects(
889
890
}
890
891
891
892
// missing objects in DB (default mode)
893
+ $ existing_obj_ids = array_keys ($ existing );
892
894
if (sizeof ($ existing ) != sizeof ($ a_obj_ids )) {
893
- foreach (array_diff ($ a_obj_ids , $ existing ) as $ obj_id ) {
895
+ foreach (array_diff ($ a_obj_ids , $ existing_obj_ids ) as $ obj_id ) {
894
896
$ olp = ilObjectLP::getInstance ($ obj_id );
895
897
$ mode = $ olp ->getCurrentMode ();
896
898
if ($ mode == ilLPObjSettings::LP_MODE_DEACTIVATED ) {
You can’t perform that action at this time.
0 commit comments