mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
merged, taking care of a warning
This commit is contained in:
parent
c81aa39f92
commit
4bda5c717c
1 changed files with 4 additions and 2 deletions
|
@ -1301,7 +1301,9 @@ function update_record($table, $dataobject) {
|
||||||
|
|
||||||
// Remove this record from record cache since it will change
|
// Remove this record from record cache since it will change
|
||||||
global $record_cache;
|
global $record_cache;
|
||||||
|
if (isset($record_cache[$table][$dataobject->id])) {
|
||||||
unset($record_cache[$table][$dataobject->id]);
|
unset($record_cache[$table][$dataobject->id]);
|
||||||
|
}
|
||||||
|
|
||||||
/// Temporary hack as part of phasing out all access to obsolete user tables XXX
|
/// Temporary hack as part of phasing out all access to obsolete user tables XXX
|
||||||
if (!empty($CFG->rolesactive)) {
|
if (!empty($CFG->rolesactive)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue