Commit 81b4368e authored by Donal McMullan's avatar Donal McMullan
Browse files

Use new User object to modify usr table

parent 65a24582
......@@ -81,10 +81,10 @@ if ($error = $um->save_file(ArtefactTypeFile::get_file_directory($fileid) , $fil
else {
// Just add to the usr table directly.
$ownerquotaused = get_field('usr', 'quotaused', 'id', $viewdata->owner);
set_field('usr', 'quotaused', $ownerquotaused + $size, 'id', $viewdata->owner);
$usr = new User();
global $USER;
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