From 4c016548c6d4a015eab69909cfef1fe16af574d5 Mon Sep 17 00:00:00 2001 From: Alejandro Gallardo Escobar Date: Mon, 26 Jan 2015 19:04:29 +0100 Subject: [PATCH] Error fixes --- pandora_console/include/class/Tree.class.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pandora_console/include/class/Tree.class.php b/pandora_console/include/class/Tree.class.php index 64e3639e46..ec13a57793 100644 --- a/pandora_console/include/class/Tree.class.php +++ b/pandora_console/include/class/Tree.class.php @@ -1197,7 +1197,7 @@ class Tree { } else if ($server_id) { $server = metaconsole_get_servers($server_id); - if (metaconsole_connect($server) != NOERR) { + if (metaconsole_connect($server) == NOERR) { $data = db_process_sql($sql); metaconsole_restore_db(); } @@ -1564,7 +1564,7 @@ class Tree { $items = array(); foreach ($rootIDs as $serverID => $rootID) { $server = metaconsole_get_servers($serverID); - if (metaconsole_connect($server) == NOERR) + if (metaconsole_connect($server) != NOERR) continue; $this->rootID = $rootID; @@ -1778,7 +1778,7 @@ class Tree { $item_list = array(); foreach ($servers as $server) { - if (metaconsole_connect($server) == NOERR) + if (metaconsole_connect($server) != NOERR) continue; $items = $this->getItems(); @@ -1813,7 +1813,7 @@ class Tree { $items = array(); foreach ($rootIDs as $serverID => $rootID) { $server = metaconsole_get_servers($serverID); - if (metaconsole_connect($server) == NOERR) + if (metaconsole_connect($server) != NOERR) continue; $this->rootID = $rootID; @@ -1872,7 +1872,7 @@ class Tree { $items = array(); foreach ($rootIDs as $serverID => $rootID) { $server = metaconsole_get_servers($serverID); - if (metaconsole_connect($server) == NOERR) + if (metaconsole_connect($server) != NOERR) continue; $this->rootID = $rootID;