diff options
author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-02-23 20:51:30 +0000 |
---|---|---|
committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-02-23 20:51:30 +0000 |
commit | dc6464df80268de3ea3ba0c4eac4300ae54b7497 (patch) | |
tree | f2cf1bed595c540344be1210db1a7136a546754d /frontends/php/overview.php | |
parent | b3f39cd38fc28b605251de92117e1f25dee91cb0 (diff) | |
download | zabbix-dc6464df80268de3ea3ba0c4eac4300ae54b7497.tar.gz zabbix-dc6464df80268de3ea3ba0c4eac4300ae54b7497.tar.xz zabbix-dc6464df80268de3ea3ba0c4eac4300ae54b7497.zip |
Minor changes.
git-svn-id: svn://svn.zabbix.com/trunk@1670 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/overview.php')
-rw-r--r-- | frontends/php/overview.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/frontends/php/overview.php b/frontends/php/overview.php index 89a73b24..9de75767 100644 --- a/frontends/php/overview.php +++ b/frontends/php/overview.php @@ -142,10 +142,14 @@ if(DBnum_rows($result2)==1) { $row2=DBfetch($result2); - if($row2["value_type"] == 0) - $value=nbsp(convert_units($row2["lastvalue"],$row2["units"])); + if(!isset($row2["lastvalue"])) $value="-"; else - $value=nbsp(htmlspecialchars(substr($row2["lastvalue"],0,20)." ...")); + { + if($row2["value_type"] == 0) + $value=nbsp(convert_units($row2["lastvalue"],$row2["units"])); + else + $value=nbsp(htmlspecialchars(substr($row2["lastvalue"],0,20)." ...")); + } } else { @@ -157,7 +161,6 @@ table_row($rows, $col++); } table_end(); - show_table_header_end(); } else if(isset($_GET["groupid"])&&isset($_GET["type"])&&($_GET["type"]==0)) { @@ -228,7 +231,6 @@ table_row($rows, $col++); } table_end(); - show_table_header_end(); } else { |