summaryrefslogtreecommitdiffstats
path: root/frontends
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-08-01 13:31:43 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-08-01 13:31:43 +0000
commit11f5ce6cef37a10e7777fdbd5f22932a91b4952e (patch)
tree4618d52d9ba3c3bdfda23f831c6bd6d89882b9c9 /frontends
parentdf7a8d081f3993f35c3ec6695d098d37363d49a6 (diff)
downloadzabbix-11f5ce6cef37a10e7777fdbd5f22932a91b4952e.tar.gz
zabbix-11f5ce6cef37a10e7777fdbd5f22932a91b4952e.tar.xz
zabbix-11f5ce6cef37a10e7777fdbd5f22932a91b4952e.zip
- minor fix for cleaning of zero variables (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@4499 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends')
-rw-r--r--frontends/php/include/classes/cform.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/php/include/classes/cform.inc.php b/frontends/php/include/classes/cform.inc.php
index c61baf42..90d1a0c1 100644
--- a/frontends/php/include/classes/cform.inc.php
+++ b/frontends/php/include/classes/cform.inc.php
@@ -62,7 +62,7 @@
function AddVar($name, $value)
{
- if(empty($value)) return $value;
+ if(empty($value) && $value != 0) return $value;
return $this->AddItem(new CVar($name, $value));
}