From 7593df0a55bd7ee4a6f0e52cf2d1bd7e316ebebc Mon Sep 17 00:00:00 2001 From: sam marshall Date: Wed, 1 May 2013 16:58:02 +0100 Subject: [PATCH] MDL-39452 Library: html_writer::attribute unnecessary is_array check --- lib/outputcomponents.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/outputcomponents.php b/lib/outputcomponents.php index e3080b1a694..d3091751e70 100644 --- a/lib/outputcomponents.php +++ b/lib/outputcomponents.php @@ -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() . '"'; }