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

This commit is contained in:
sam marshall
2013-05-01 17:00:52 +01:00
parent cf5a3296c4
commit 7593df0a55
-3
View File
@@ -1052,9 +1052,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() . '"';
}