From c2c04c6976af0dbd497f966857f05748a90ed6e7 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Mon, 28 Dec 2009 14:53:31 +0000 Subject: [PATCH] MDL-21198 fixed legacy PHP4 pass-by-reference notation + added proper param type --- lib/outputrenderers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/outputrenderers.php b/lib/outputrenderers.php index 115614a67b..4f03e45a6a 100644 --- a/lib/outputrenderers.php +++ b/lib/outputrenderers.php @@ -170,7 +170,7 @@ class renderer_base { * @param html_component $component * @return void; */ - protected function prepare_event_handlers(&$component) { + protected function prepare_event_handlers(html_component $component) { $actions = $component->get_actions(); if (!empty($actions) && is_array($actions) && $actions[0] instanceof component_action) { foreach ($actions as $action) { -- 2.39.5