diff --git a/userfile.php b/userfile.php index 793ac7e2242..ee11ca26c12 100644 --- a/userfile.php +++ b/userfile.php @@ -98,7 +98,7 @@ switch ($filearea) { if ($USER->id != $userid) { send_file_not_found(); } - $itemid = (int)array_shift($args); + $itemid = 0; $forcedownload = true; break;