summaryrefslogtreecommitdiffstats
path: root/frontends/php/history.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-06-27 07:29:32 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-06-27 07:29:32 +0000
commita840c40a485076ed3b5f43e79ddb4bec59afb862 (patch)
treeb44fd2b467200f0ea3f72329a5650a0d83a4f095 /frontends/php/history.php
parente2a49f81092e445f549e3cac4c0d57a2b14df7fb (diff)
downloadzabbix-a840c40a485076ed3b5f43e79ddb4bec59afb862.tar.gz
zabbix-a840c40a485076ed3b5f43e79ddb4bec59afb862.tar.xz
zabbix-a840c40a485076ed3b5f43e79ddb4bec59afb862.zip
- changed type of lastlogsize to long in structure METRIC (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@2980 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/history.php')
-rw-r--r--frontends/php/history.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/frontends/php/history.php b/frontends/php/history.php
index a42ac1b1..db46a737 100644
--- a/frontends/php/history.php
+++ b/frontends/php/history.php
@@ -484,7 +484,8 @@ COpt::profiling_start("history");
$row["value"] = "";
}
- $value = replace_value_by_map($row["value"], $row["valuemapid"]);
+ if($row["valuemapid"] > 0)
+ $value = replace_value_by_map($row["value"], $row["valuemapid"]);
$new_row = array(date("Y.M.d H:i:s",$row["clock"]));
if(in_array($item_type,array(ITEM_VALUE_TYPE_FLOAT,ITEM_VALUE_TYPE_UINT64)))