diff --git a/includes/view.inc b/includes/view.inc index 33beefd..8d1e69f 100644 --- a/includes/view.inc +++ b/includes/view.inc @@ -416,7 +416,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 3c47037..38b585f 100644 --- a/plugins/views_plugin_display.inc +++ b/plugins/views_plugin_display.inc @@ -565,7 +565,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();