diff options
author | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-04-15 10:08:51 +0000 |
---|---|---|
committer | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-04-15 10:08:51 +0000 |
commit | 7af07ac3e1c9c6c2a9fa97cb2cd3c92080752430 (patch) | |
tree | 59bccc0c112d42c3a9e9bd07709e8f78e2625950 /frontends/php/triggers.php | |
parent | dc613c5587703836d1d0b4767e95a7d1b294b528 (diff) | |
download | zabbix-7af07ac3e1c9c6c2a9fa97cb2cd3c92080752430.tar.gz zabbix-7af07ac3e1c9c6c2a9fa97cb2cd3c92080752430.tar.xz zabbix-7af07ac3e1c9c6c2a9fa97cb2cd3c92080752430.zip |
- [DEV-142] improvements in transactions for DB actions (beta) (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5622 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/triggers.php')
-rw-r--r-- | frontends/php/triggers.php | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/frontends/php/triggers.php b/frontends/php/triggers.php index 6a1ba3a9..2139840f 100644 --- a/frontends/php/triggers.php +++ b/frontends/php/triggers.php @@ -400,8 +400,7 @@ include_once "include/page_header.php"; $sql .= order_by('h.host,t.description,t.priority,t.status'); $result=DBselect($sql); - while($row=DBfetch($result)) - { + while($row=DBfetch($result)){ if(!check_right_on_trigger_by_triggerid(null, $row['triggerid'], $accessible_hosts)) continue; @@ -416,17 +415,14 @@ include_once "include/page_header.php"; $row["triggerid"]), /* value */ SPACE); - if($row["templateid"]) - { + if($row["templateid"]){ $real_hosts = get_realhosts_by_triggerid($row["triggerid"]); $real_host = DBfetch($real_hosts); - if($real_host) - { + if($real_host){ $description[] = new CLink($real_host["host"], "triggers.php?&hostid=".$real_host["hostid"], 'unknown'); } - else - { + else{ $description[] = new CSpan("error","on"); } $description[] = ':'; |