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/triggers.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/triggers.inc.php')
| -rw-r--r-- | frontends/php/include/triggers.inc.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/frontends/php/include/triggers.inc.php b/frontends/php/include/triggers.inc.php index 65b26696..f9cfb630 100644 --- a/frontends/php/include/triggers.inc.php +++ b/frontends/php/include/triggers.inc.php @@ -593,7 +593,7 @@ $fnc_valid = &$ZBX_TR_EXPR_ALLOWED_FUNCTIONS[$function]; if ( is_array($fnc_valid['item_types']) && - !in_array($item['value_type'], $fnc_valid['item_types'])) + !uint_in_array($item['value_type'], $fnc_valid['item_types'])) { $allowed_types = array(); foreach($fnc_valid['item_types'] as $type) @@ -1531,7 +1531,7 @@ $db_hosts = get_hosts_by_expression($expression); while($host_data = DBfetch($db_hosts)) { - if(!in_array($host_data['hostid'], $accessible_hosts)) return false; + if(!uint_in_array($host_data['hostid'], $accessible_hosts)) return false; } return true; @@ -1707,7 +1707,7 @@ $db_tmp_hosts = get_hosts_by_triggerid($trigger["templateid"]); $tmp_host = DBfetch($db_tmp_hosts); - if( !in_array($tmp_host["hostid"], $templateid) ) + if( !uint_in_array($tmp_host["hostid"], $templateid) ) continue; } |
