mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
MDL-43039 Libraries "The session partition is full." false positive.
This commit is contained in:
parent
9b37cd72a2
commit
35897a5223
@ -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…
x
Reference in New Issue
Block a user