From 84905593d2d5d7c2e183db3c0c47e236f1b1804b Mon Sep 17 00:00:00 2001 From: Axel Rutz Date: Sat, 30 Aug 2014 22:54:46 +0200 Subject: [PATCH] Entityreference 2010898-80-interdiff --- ...ntityReference_SelectionHandler_Views.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/selection/EntityReference_SelectionHandler_Views.class.php b/plugins/selection/EntityReference_SelectionHandler_Views.class.php index fd2cf81..ef7830e 100644 --- a/plugins/selection/EntityReference_SelectionHandler_Views.class.php +++ b/plugins/selection/EntityReference_SelectionHandler_Views.class.php @@ -128,7 +128,7 @@ class EntityReference_SelectionHandler_Views implements EntityReference_Selectio $result = array(); if ($this->initializeView($match, $match_operator, $limit)) { // Get the results. - $result = $this->view->execute_display($display_name, (!array_filter($args) ? array() : $args)); + $result = $this->view->execute_display($display_name, $args); } $return = array(); @@ -221,7 +221,7 @@ class EntityReference_SelectionHandler_Views implements EntityReference_Selectio foreach ($args as $key => $arg) { $args[$key] = token_replace($arg, $data, $options); } - return array_filter($args); + return $args; } } -- 1.7.9.5