Merge branch 'wip-MDL-38075-m24' of git://github.com/samhemelryk/moodle into MOODLE_24_STABLE

This commit is contained in:
Eloy Lafuente (stronk7)
2013-02-20 00:07:47 +01:00
+7 -1
View File
@@ -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();
}
}