From 755b013fdfd6103a8ff81cb2d79a12aca0e020c9 Mon Sep 17 00:00:00 2001 From: Frederic Massart Date: Fri, 18 Nov 2016 15:47:32 +0800 Subject: [PATCH] MDL-56959 output: Prevent notice when csstreepostprocess is undefined --- lib/outputlib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }