Permalink
Browse files

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

  • Loading branch information...
1 parent cf5a329 commit 7593df0a55bd7ee4a6f0e52cf2d1bd7e316ebebc @sammarshallou sammarshallou committed May 1, 2013
Showing with 0 additions and 3 deletions.
  1. +0 −3 lib/outputcomponents.php
View
@@ -1052,9 +1052,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 7593df0

Please sign in to comment.