MDL-56959 output: Prevent notice when csstreepostprocess is undefined

This commit is contained in:
Frederic Massart
2016-11-18 15:47:32 +08:00
parent cb3f67364d
commit 755b013fdf
+1 -1
View File
@@ -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;
}
}