Author: Lars Michelsen <[email protected]>
Date: Sun Nov 24 15:21:41 2013 +0100
Committer: Lars Michelsen <[email protected]>
Commit-Date: Sun Nov 24 15:21:41 2013 +0100
Fixed adding host/service object from demo backend to maps
---
share/server/core/classes/GlobalBackendTest.php | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/share/server/core/classes/GlobalBackendTest.php
b/share/server/core/classes/GlobalBackendTest.php
index 049af6b..2ec69ca 100644
--- a/share/server/core/classes/GlobalBackendTest.php
+++ b/share/server/core/classes/GlobalBackendTest.php
@@ -440,11 +440,13 @@ class GlobalBackendTest implements GlobalBackendInterface
{
}
$result = Array();
- foreach($l as $entry) {
- if($type != 'service') {
- $result[] = Array('name1' => $entry['name'], 'name2' =>
$entry['alias']);
+ foreach ($l as $key => $entry) {
+ if ($type == 'host') {
+ $result[] = Array('name1' => $key, 'name2' => $entry[13]);
+ } elseif ($type != 'service') {
+ $result[] = Array('name1' => $key, 'name2' => $entry['alias']);
} else {
- $result[] = Array('name1' => $entry['service_description'],
'name2' => $entry['service_description']);
+ $result[] = Array('name1' => $entry[22], 'name2' =>
$entry[22]);
}
}
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins