summaryrefslogtreecommitdiffstats
path: root/frontends/php/triggers.php
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/triggers.php')
-rw-r--r--frontends/php/triggers.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/php/triggers.php b/frontends/php/triggers.php
index 5b60fd6c..aa9724ec 100644
--- a/frontends/php/triggers.php
+++ b/frontends/php/triggers.php
@@ -311,9 +311,9 @@
);
} else {
$real_hosts = get_realhosts_by_triggerid($row["triggerid"]);
- if(DBnum_rows($real_hosts) == 1)
+ $real_host = DBfetch($real_hosts);
+ if($real_host)
{
- $real_host = DBfetch($real_hosts);
array_push($description,
new CLink($real_host["host"],
"triggers.php?&hostid=".$real_host["hostid"], 'action'),