diff --git a/includes/view.inc b/includes/view.inc index 48e503f..b929668 100644 --- a/includes/view.inc +++ b/includes/view.inc @@ -594,7 +594,7 @@ class view extends views_db_object { */ function _init_handler($key, $info) { // Load the requested items from the display onto the object. - $this->$key = $this->display_handler->get_handlers($key); + $this->$key = &$this->display_handler->get_handlers($key); // This reference deals with difficult PHP indirection. $handlers = &$this->$key; diff --git a/plugins/views_plugin_display.inc b/plugins/views_plugin_display.inc index 9ad2c99..0de20f5 100644 --- a/plugins/views_plugin_display.inc +++ b/plugins/views_plugin_display.inc @@ -838,7 +838,7 @@ class views_plugin_display extends views_plugin { /** * Get a full array of handlers for $type. This caches them. */ - function get_handlers($type) { + function &get_handlers($type) { if (!isset($this->handlers[$type])) { $this->handlers[$type] = array(); $types = views_object_types();