MDL-14589 fixed error message if url malformed

This commit is contained in:
skodak 2009-06-21 18:22:16 +00:00
parent b0ea27b441
commit 4937508878

View file

@ -50,7 +50,9 @@ if (count($args) == 0) { // always at least user id
$contextid = (int)array_shift($args); $contextid = (int)array_shift($args);
$filearea = array_shift($args); $filearea = array_shift($args);
$context = get_context_instance_by_id($contextid); if (!$context = get_context_instance_by_id($contextid)) {
send_file_not_found();
}
$fs = get_file_storage(); $fs = get_file_storage();