summaryrefslogtreecommitdiffstats
path: root/frontends/php/include
diff options
context:
space:
mode:
authorsasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-03-11 20:17:42 +0000
committersasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-03-11 20:17:42 +0000
commit3fa60cc03b6abbeeb4cd0342df8d6f672b3e2b6d (patch)
tree6ea7cdefff873c7d24b98f4d3968c739ad38fea6 /frontends/php/include
parentf8bfbc1f123c48c09c93a01a5e831c577cbf68fd (diff)
downloadzabbix-3fa60cc03b6abbeeb4cd0342df8d6f672b3e2b6d.tar.gz
zabbix-3fa60cc03b6abbeeb4cd0342df8d6f672b3e2b6d.tar.xz
zabbix-3fa60cc03b6abbeeb4cd0342df8d6f672b3e2b6d.zip
- [DEV-108] GUI
git-svn-id: svn://svn.zabbix.com/trunk@5475 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include')
-rw-r--r--frontends/php/include/hosts.inc.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/frontends/php/include/hosts.inc.php b/frontends/php/include/hosts.inc.php
index f97eb553..acdabed1 100644
--- a/frontends/php/include/hosts.inc.php
+++ b/frontends/php/include/hosts.inc.php
@@ -606,8 +606,9 @@ require_once "include/items.inc.php";
{
update_trigger_value_to_unknown_by_hostid($hostid);
info("Updated status of host ".$row["host"]);
- return DBexecute("update hosts set status=$status".
- " where hostid=$hostid and status!=".HOST_STATUS_DELETED);
+ return DBexecute('update hosts set status='.$status.' where hostid='.$hostid.
+ ' and status in ('.HOST_STATUS_MONITORED.','.HOST_STATUS_NOT_MONITORED.')'
+ );
}
else
{