summaryrefslogtreecommitdiffstats
path: root/frontends/php/items.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-08-14 08:50:01 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-08-14 08:50:01 +0000
commit7c3c697db72d25ae722fb4f12f8d62e4a87457d6 (patch)
treea78ae96760e2e55e857f028f6c97ae03285c8e2f /frontends/php/items.php
parent448538cfc4346e0cc8be1d10ed6abc73da7a4173 (diff)
downloadzabbix-7c3c697db72d25ae722fb4f12f8d62e4a87457d6.tar.gz
zabbix-7c3c697db72d25ae722fb4f12f8d62e4a87457d6.tar.xz
zabbix-7c3c697db72d25ae722fb4f12f8d62e4a87457d6.zip
- fixed history cleaning (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@3129 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/items.php')
-rw-r--r--frontends/php/items.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/php/items.php b/frontends/php/items.php
index c25543db..b531d937 100644
--- a/frontends/php/items.php
+++ b/frontends/php/items.php
@@ -159,7 +159,7 @@
$result = delete_history_by_itemid($_REQUEST["itemid"]);
if($result)
{
- DBexecute("update items set nextcheck=null,lastvalue=null,".
+ DBexecute("update items set nextcheck=0,lastvalue=null,".
"lastclock=null,prevvalue=null where itemid=".$_REQUEST["itemid"]);
}
show_messages($result, S_HISTORY_CLEANED, S_CANNOT_CLEAN_HISTORY);
@@ -328,7 +328,7 @@
foreach($group_itemid as $id)
{
delete_history_by_itemid($id);
- DBexecute("update items set nextcheck=null,lastvalue=null,".
+ DBexecute("update items set nextcheck=0,lastvalue=null,".
"lastclock=null,prevvalue=null where itemid=$id");
}
show_messages(TRUE, S_HISTORY_CLEANED, S_CANNOT_CLEAN_HISTORY);