diff --git a/lib/outputcomponents.php b/lib/outputcomponents.php index 6c75bfee66d..97d61a3435a 100644 --- a/lib/outputcomponents.php +++ b/lib/outputcomponents.php @@ -568,6 +568,7 @@ class action_link implements renderable { public function __construct(moodle_url $url, $text, component_action $action=null, array $attributes=null) { $this->url = clone($url); $this->text = $text; + $this->attributes = (array)$attributes; if ($action) { $this->add_action($action); }