diff --git a/inc/events.php b/inc/events.php index 621cb64c1e..09f3f3c0c7 100644 --- a/inc/events.php +++ b/inc/events.php @@ -149,8 +149,8 @@ function Doku_Event_Handler() { * @param $method (function) event handler function * @param $param (mixed) data passed to the event handler */ - function register_hook($event, $advise, &$obj, $method, $param=null) { - $this->_hooks[$event.'_'.$advise][] = array(&$obj, $method, $param); + function register_hook($event, $advise, $obj, $method, $param=null) { + $this->_hooks[$event.'_'.$advise][] = array($obj, $method, $param); } function process_event(&$event,$advise='') {