Skip to content

Commit

Permalink
MDL-39452 Library: html_writer::attribute unnecessary is_array check
Browse files Browse the repository at this point in the history
  • Loading branch information
sammarshallou committed May 1, 2013
1 parent c6be138 commit 442406d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/outputcomponents.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() . '"';
}
Expand Down

0 comments on commit 442406d

Please sign in to comment.