diff --git a/lib/outputlib.php b/lib/outputlib.php index 7232a6554f2..053432bf8dd 100644 --- a/lib/outputlib.php +++ b/lib/outputlib.php @@ -2232,7 +2232,7 @@ class theme_config { public function get_css_tree_post_processor() { $configs = [$this] + $this->parent_configs; foreach ($configs as $config) { - if ($config->csstreepostprocessor && is_callable($config->csstreepostprocessor)) { + if (!empty($config->csstreepostprocessor) && is_callable($config->csstreepostprocessor)) { return $config->csstreepostprocessor; } }