summaryrefslogtreecommitdiffstats
path: root/frontends/php/services.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-01-03 16:56:29 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-01-03 16:56:29 +0000
commit612395530e4a50b45aeab023187738eb7c085cb9 (patch)
treeefc85e2d7d4ba1bc0bbdf95156bddb5a7fed24fa /frontends/php/services.php
parent46efb00ae45d32245790114db4197ec5799889dc (diff)
downloadzabbix-612395530e4a50b45aeab023187738eb7c085cb9.tar.gz
zabbix-612395530e4a50b45aeab023187738eb7c085cb9.tar.xz
zabbix-612395530e4a50b45aeab023187738eb7c085cb9.zip
Minor changes.
git-svn-id: svn://svn.zabbix.com/trunk@1125 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/services.php')
-rw-r--r--frontends/php/services.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/frontends/php/services.php b/frontends/php/services.php
index d0c8a5fd..5979f131 100644
--- a/frontends/php/services.php
+++ b/frontends/php/services.php
@@ -383,7 +383,14 @@
// $name_=DBget_field($result,$i,2);
// if( strstr($name_,"%s"))
// {
- $name_=expand_trigger_description(DBget_field($result,$i,1));
+ if(DBget_field($result,$i,1)>0)
+ {
+ $name_=expand_trigger_description(DBget_field($result,$i,1));
+ }
+ else
+ {
+ $name_=DBget_field($result,$i,2);
+ }
// }
echo "<OPTION VALUE='$servicedownid_'>$name_";
}