diff --git a/lib/classes/scss.php b/lib/classes/scss.php index 0b13e49050f..22810801e15 100644 --- a/lib/classes/scss.php +++ b/lib/classes/scss.php @@ -111,7 +111,7 @@ class core_scss extends \Leafo\ScssPhp\Compiler { public function compile($code, $path = null) { global $CFG; - $pathtosassc = trim($CFG->pathtosassc); + $pathtosassc = trim($CFG->pathtosassc ?? ''); if (!empty($pathtosassc) && is_executable($pathtosassc) && !is_dir($pathtosassc)) { $process = proc_open(