mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
MDL-47835 block_recent_activity: Same entry keys order
insert_records() is sensitive to the order of the keys assigned to the inserted objects (inserted as arrays in this case). Now keys are assigned using the same order.
This commit is contained in:
parent
32a69a7d7a
commit
3c26a30799
@ -294,12 +294,12 @@ class block_recent_activity extends block_base {
|
||||
if (!isset($modinfo->instances[$modname][$instanceid])) {
|
||||
continue;
|
||||
}
|
||||
$entry['cmid'] = $modinfo->instances[$modname][$instanceid]->id;
|
||||
if ($log->action == 'add mod') {
|
||||
$entry['action'] = 0;
|
||||
} else {
|
||||
$entry['action'] = 1;
|
||||
}
|
||||
$entry['cmid'] = $modinfo->instances[$modname][$instanceid]->id;
|
||||
}
|
||||
$entries[] = $entry;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user