mirror of
https://github.com/moodle/moodle.git
synced 2025-05-31 21:19:49 +02:00
MDL-14589 fixed undefined itemid
This commit is contained in:
parent
aa9bcfcd50
commit
3445b38281
@ -40,7 +40,7 @@ class file_info_stored extends file_info {
|
||||
$dir = array_pop($dir);
|
||||
if ($dir === '') {
|
||||
if ($this->itemidused) {
|
||||
return $this->itemid;
|
||||
return $this->lf->get_itemid();
|
||||
} else {
|
||||
return $this->areavisiblename;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user