summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/items.inc.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-05-06 10:57:26 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-05-06 10:57:26 +0000
commit639aac687504d1c00010a4295c22f3e6fb878ffb (patch)
tree5615d7338d9a6bb53433a30eb64fe72e4af7bd31 /frontends/php/include/items.inc.php
parent80b3cdaf1c9b33a0d9c6d5de1f0099cd8f5e429e (diff)
downloadzabbix-639aac687504d1c00010a4295c22f3e6fb878ffb.tar.gz
zabbix-639aac687504d1c00010a4295c22f3e6fb878ffb.tar.xz
zabbix-639aac687504d1c00010a4295c22f3e6fb878ffb.zip
Minor changes.
git-svn-id: svn://svn.zabbix.com/trunk@1756 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/items.inc.php')
-rw-r--r--frontends/php/include/items.inc.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/frontends/php/include/items.inc.php b/frontends/php/include/items.inc.php
index 16b74f14..cc0e73c5 100644
--- a/frontends/php/include/items.inc.php
+++ b/frontends/php/include/items.inc.php
@@ -78,7 +78,11 @@
$ERROR_MSG="Insufficient permissions";
return 0;
}
- $sql="update items set status=$status where itemid=$itemid";
+ if($status==ITEM_STATUS_ACTIVE)
+ $sql="update items set status=$status,error=\"\" where itemid=$itemid";
+ else
+ $sql="update items set status=$status where itemid=$itemid";
+
return DBexecute($sql);
}