Permalink
Browse files

MDL-39452 Library: html_writer::attribute unnecessary is_array check

  • Loading branch information...
1 parent c6be138 commit 442406d3ecaa5ad5feb9d92c6d57514c1474a488 @sammarshallou sammarshallou committed May 1, 2013
Showing with 0 additions and 3 deletions.
  1. +0 −3 lib/outputcomponents.php
View
@@ -1108,9 +1108,6 @@ public static function nonempty_tag($tagname, $contents, array $attributes = nul
* @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() . '"';
}

0 comments on commit 442406d

Please sign in to comment.