Permalink
Browse files

MDL-43039 Libraries "The session partition is full." false positive.

  • Loading branch information...
1 parent 3dc57a1 commit 563557f21ed38d1a17d874950817af8316a13aa0 @scara scara committed Nov 24, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/sessionlib.php
View
@@ -435,7 +435,8 @@ protected function init_session_storage() {
// Need to disable debugging since disk_free_space()
// will fail on very large partitions (see MDL-19222)
$freespace = @disk_free_space($CFG->dataroot.'/sessions');
- if (!($freespace > 2048) and $freespace !== false) {
+ // MDL-43039: disk_free_space() returns null if disabled.
+ if (!($freespace > 2048) and ($freespace !== false) and ($freespace !== null)) {
print_error('sessiondiskfull', 'error');
}
ini_set('session.save_path', $CFG->dataroot .'/sessions');

0 comments on commit 563557f

Please sign in to comment.