Merge branch 'wip-MDL-38075-m24' of git://github.com/samhemelryk/moodle into MOODLE_24_STABLE
This commit is contained in:
+7
-1
@@ -1747,7 +1747,13 @@ class css_rule {
|
||||
$css = $this->out();
|
||||
$errors = array();
|
||||
foreach ($this->styles as $style) {
|
||||
if ($style->has_error()) {
|
||||
if (is_array($style)) {
|
||||
foreach ($style as $s) {
|
||||
if ($style instanceof css_style && $style->has_error()) {
|
||||
$errors[] = " * ".$style->get_last_error();
|
||||
}
|
||||
}
|
||||
} else if ($style instanceof css_style && $style->has_error()) {
|
||||
$errors[] = " * ".$style->get_last_error();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user