From 79b77a6ecf7a1e638a0fc1c38d56a2dee604013f Mon Sep 17 00:00:00 2001 From: Alejandro Gallardo Escobar Date: Mon, 9 Mar 2015 20:43:41 +0100 Subject: [PATCH] Error fixes (again) --- pandora_console/include/class/Tree.class.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pandora_console/include/class/Tree.class.php b/pandora_console/include/class/Tree.class.php index b11e7e30e0..da8a03d97b 100644 --- a/pandora_console/include/class/Tree.class.php +++ b/pandora_console/include/class/Tree.class.php @@ -1631,7 +1631,7 @@ class Tree { if (!empty($this->filter["groupID"])) { $result = self::extractItemWithID($processed_items, $this->filter["groupID"], "group"); - if ($processed_items === false) + if ($result === false) $processed_items = array(); else $processed_items = array($result); @@ -1639,7 +1639,7 @@ class Tree { else if (!empty($this->filter["tagID"])) { $result = self::extractItemWithID($processed_items, $this->filter["tagID"], "tag"); - if ($processed_items === false) + if ($result === false) $processed_items = array(); else $processed_items = array($result); @@ -1737,9 +1737,8 @@ class Tree { // groupID filter. To access the view from tactical views f.e. if (!empty($processed_items) && !empty($this->filter['groupID'])) { $result = self::extractItemWithID($processed_items, $this->filter['groupID'], "group"); - $processed_items = array($result); - if ($processed_items === false) + if ($result === false) $processed_items = array(); else $processed_items = array($result);