summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/actions.inc.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-01-16 14:28:28 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-01-16 14:28:28 +0000
commit819114c84816786fa5bd16c933e0ea8d6d09f9d9 (patch)
tree6f5188b3404ffafd72c5aaee61386c285f692771 /frontends/php/include/actions.inc.php
parent32e5c61ed67fadf2cf7670a1f5bfa55bf4831c9c (diff)
downloadzabbix-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/actions.inc.php')
-rw-r--r--frontends/php/include/actions.inc.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/frontends/php/include/actions.inc.php b/frontends/php/include/actions.inc.php
index 70d3b5d4..4875ba9a 100644
--- a/frontends/php/include/actions.inc.php
+++ b/frontends/php/include/actions.inc.php
@@ -44,13 +44,13 @@ include_once 'include/discovery.inc.php';
switch($ac_data['conditiontype'])
{
case CONDITION_TYPE_HOST_GROUP:
- if(in_array($ac_data['value'],explode(',',$denyed_groups)))
+ if(uint_in_array($ac_data['value'],explode(',',$denyed_groups)))
{
$result = false;
}
break;
case CONDITION_TYPE_HOST:
- if(in_array($ac_data['value'],explode(',',$denyed_hosts)))
+ if(uint_in_array($ac_data['value'],explode(',',$denyed_hosts)))
{
$result = false;
}
@@ -86,14 +86,14 @@ include_once 'include/discovery.inc.php';
switch($ac_data['type'])
{
case CONDITION_TYPE_HOST_GROUP:
- if(in_array($ac_data['value'],explode(',',$denyed_groups)))
+ if(uint_in_array($ac_data['value'],explode(',',$denyed_groups)))
{
error(S_INCORRECT_GROUP);
$result = false;
}
break;
case CONDITION_TYPE_HOST:
- if(in_array($ac_data['value'],explode(',',$denyed_hosts)))
+ if(uint_in_array($ac_data['value'],explode(',',$denyed_hosts)))
{
error(S_INCORRECT_HOST);
$result = false;
@@ -612,7 +612,7 @@ include_once 'include/discovery.inc.php';
switch($conditiontype)
{
case CONDITION_TYPE_HOST_GROUP:
- if(!in_array($value,
+ if(!uint_in_array($value,
get_accessible_groups_by_user($USER_DETAILS,PERM_READ_ONLY,null,
PERM_RES_IDS_ARRAY)))
{
@@ -629,7 +629,7 @@ include_once 'include/discovery.inc.php';
}
break;
case CONDITION_TYPE_HOST:
- if(!in_array($value,
+ if(!uint_in_array($value,
get_accessible_hosts_by_user($USER_DETAILS,PERM_READ_ONLY,null,
PERM_RES_IDS_ARRAY)))
{
@@ -721,7 +721,7 @@ include_once 'include/discovery.inc.php';
break;
case OPERATION_TYPE_GROUP_ADD:
case OPERATION_TYPE_GROUP_REMOVE:
- if(!in_array($operation['objectid'],
+ if(!uint_in_array($operation['objectid'],
get_accessible_groups_by_user($USER_DETAILS,PERM_READ_WRITE,null,
PERM_RES_IDS_ARRAY)))
{
@@ -731,7 +731,7 @@ include_once 'include/discovery.inc.php';
break;
case OPERATION_TYPE_TEMPLATE_ADD:
case OPERATION_TYPE_TEMPLATE_REMOVE:
- if(!in_array($operation['objectid'],
+ if(!uint_in_array($operation['objectid'],
get_accessible_hosts_by_user($USER_DETAILS,PERM_READ_WRITE,null,
PERM_RES_IDS_ARRAY)))
{