diff options
| author | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-01-16 14:28:28 +0000 |
|---|---|---|
| committer | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-01-16 14:28:28 +0000 |
| commit | 819114c84816786fa5bd16c933e0ea8d6d09f9d9 (patch) | |
| tree | 6f5188b3404ffafd72c5aaee61386c285f692771 /frontends/php/include/items.inc.php | |
| parent | 32e5c61ed67fadf2cf7670a1f5bfa55bf4831c9c (diff) | |
| download | zabbix-819114c84816786fa5bd16c933e0ea8d6d09f9d9.tar.gz zabbix-819114c84816786fa5bd16c933e0ea8d6d09f9d9.tar.xz zabbix-819114c84816786fa5bd16c933e0ea8d6d09f9d9.zip | |
- [ZBX-253] fixes problem in frontend with long int values (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5259 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/items.inc.php')
| -rw-r--r-- | frontends/php/include/items.inc.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/frontends/php/include/items.inc.php b/frontends/php/include/items.inc.php index e1da2c2e..260df4ff 100644 --- a/frontends/php/include/items.inc.php +++ b/frontends/php/include/items.inc.php @@ -232,7 +232,7 @@ if(eregi('^((.)*)(\[\"((.)*)\"\,\"((.)*)\"\,\"((.)*)\"\,\"([0-9]+)\"\])$', $key, $arr)) { $g=$arr[1]; - if(!in_array($g,array("grpmax","grpmin","grpsum","grpavg"))) + if(!str_in_array($g,array("grpmax","grpmin","grpsum","grpavg"))) { error("Group function [$g] is not one of [grpmax,grpmin,grpsum,grpavg]"); return FALSE; @@ -243,7 +243,7 @@ $g=$arr[6]; // Item function $g=$arr[8]; - if(!in_array($g,array("last", "min", "max", "avg", "sum","count"))) + if(!str_in_array($g,array("last", "min", "max", "avg", "sum","count"))) { error("Item function [$g] is not one of [last, min, max, avg, sum,count]"); return FALSE; @@ -553,7 +553,7 @@ $db_tmp_item = get_item_by_itemid($db_item["templateid"]); - if ( !in_array($db_tmp_item["hostid"], $templateid) ) + if ( !uint_in_array($db_tmp_item["hostid"], $templateid) ) continue; } |
