mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 19:06:41 +02:00
MDL-43039 Libraries "The session partition is full." false positive.
This commit is contained in:
parent
ea04def291
commit
18d2aac902
1 changed files with 2 additions and 1 deletions
|
@ -65,7 +65,8 @@ class file extends handler {
|
|||
// Need to disable debugging since disk_free_space()
|
||||
// will fail on very large partitions (see MDL-19222).
|
||||
$freespace = @disk_free_space($this->sessiondir);
|
||||
if (!($freespace > 2048) and $freespace !== false) {
|
||||
// MDL-43039: disk_free_space() returns null if disabled.
|
||||
if (!($freespace > 2048) and ($freespace !== false) and ($freespace !== null)) {
|
||||
throw new exception('sessiondiskfull', 'error');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue