summaryrefslogtreecommitdiffstats
path: root/frontends/php/map.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-12-03 09:14:49 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-12-03 09:14:49 +0000
commitbde9b2e7b9eb5c5d18e89de32ae3033d2cc415d8 (patch)
tree692baf5e75aa1b9409470a5bdb443c68fb1812b4 /frontends/php/map.php
parent7a9fe385773913d7feeb9cd60a19467f4526345b (diff)
downloadzabbix-bde9b2e7b9eb5c5d18e89de32ae3033d2cc415d8.tar.gz
zabbix-bde9b2e7b9eb5c5d18e89de32ae3033d2cc415d8.tar.xz
zabbix-bde9b2e7b9eb5c5d18e89de32ae3033d2cc415d8.zip
- [DEV-52] changes in schema.sql (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5127 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/map.php')
-rw-r--r--frontends/php/map.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/frontends/php/map.php b/frontends/php/map.php
index c4541119..d5d001ac 100644
--- a/frontends/php/map.php
+++ b/frontends/php/map.php
@@ -136,8 +136,8 @@ include_once "include/page_header.php";
list($x1, $y1) = get_icon_center_by_selementid($link["selementid1"]);
list($x2, $y2) = get_icon_center_by_selementid($link["selementid2"]);
- $drawtype = $link["drawtype_off"];
- $color = $colors[$link["color_off"]];
+ $drawtype = $link["drawtype"];
+ $color = $colors[$link["color"]];
$triggers = get_link_triggers($link['linkid']);
@@ -147,15 +147,14 @@ include_once "include/page_header.php";
foreach($triggers as $id => $link_trigger){
$triggers[$id]=array_merge($link_trigger,get_trigger_by_triggerid($link_trigger["triggerid"]));
if($triggers[$id]["status"] == TRIGGER_STATUS_ENABLED && $triggers[$id]["value"] == TRIGGER_VALUE_TRUE){
- if(($triggers[$id]['severity'] >= $max_severity)){
- $drawtype = $triggers[$id]["drawtype"];
+ if($triggers[$id]['severity'] >= $max_severity){
+ $drawtype = $triggers[$id]['drawtype'];
$color = $colors[$triggers[$id]['color']];
$max_severity=$triggers[$id]['severity'];
}
}
}
}
-
MyDrawLine($im,$x1,$y1,$x2,$y2,$color,$drawtype);
}