Commit 60d0bf38 authored by Donal McMullan's avatar Donal McMullan
Browse files

Switch USER->set to use __set overloader

parent 4e8c70fc
......@@ -380,7 +380,7 @@ class ArtefactTypeCachedProfileField extends ArtefactTypeProfileField {
$field = $this->get_artefact_type();
set_field('usr', $field, $this->title, 'id', $this->owner);
if ($this->owner == $USER->get('id')) {
$USER->set($field, $this->title);
$USER->{$field} = $this->title;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment