diff --git a/lib/outputcomponents.php b/lib/outputcomponents.php index 74f0d370894..f1d925b6bd3 100644 --- a/lib/outputcomponents.php +++ b/lib/outputcomponents.php @@ -1108,9 +1108,6 @@ class html_writer { * @return string HTML fragment */ public static function attribute($name, $value) { - if (is_array($value)) { - debugging("Passed an array for the HTML attribute $name", DEBUG_DEVELOPER); - } if ($value instanceof moodle_url) { return ' ' . $name . '="' . $value->out() . '"'; }