From 7d8102ea627ab8c5b55f0fe61b4aa8f77e46a66f Mon Sep 17 00:00:00 2001 From: Daniel Wehner <daniel.wehner@erdfisch.de> Date: Tue, 21 Aug 2012 09:31:52 +0200 Subject: [PATCH] Issue #1484336 by dawehner, damiankloip | Hurukan: Fixed Undefined index in views_plugin_row_node_view().inc. --- lib/Views/node/Plugin/views/row/View.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/Views/node/Plugin/views/row/View.php b/lib/Views/node/Plugin/views/row/View.php index a5b7cdd51866..88dd6fe5bc5e 100644 --- a/lib/Views/node/Plugin/views/row/View.php +++ b/lib/Views/node/Plugin/views/row/View.php @@ -118,11 +118,13 @@ function pre_render($values) { } function render($row) { - $node = $this->nodes[$row->{$this->field_alias}]; - $node->view = $this->view; - $build = node_view($node, $this->options['view_mode']); + if (isset($this->nodes[$row->{$this->field_alias}])) { + $node = $this->nodes[$row->{$this->field_alias}]; + $node->view = $this->view; + $build = node_view($node, $this->options['view_mode']); - return drupal_render($build); + return drupal_render($build); + } } } -- GitLab