summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/import.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/import.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/import.inc.php')
-rw-r--r--frontends/php/include/import.inc.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/frontends/php/include/import.inc.php b/frontends/php/include/import.inc.php
index d3d6a3c3..ce47a503 100644
--- a/frontends/php/include/import.inc.php
+++ b/frontends/php/include/import.inc.php
@@ -100,7 +100,7 @@
info('Host ['.$data['name'].'] skipped - user rule');
break; // case
}
- if(!in_array($host_data['hostid'], $this->accessible_hosts)){
+ if(!uint_in_array($host_data['hostid'], $this->accessible_hosts)){
error('Host ['.$data['name'].'] skipped - Access deny.');
break; // case
}
@@ -118,7 +118,7 @@
}
// if( count($this->accessible_nodes) > 0 ){
- if(!in_array(get_current_nodeid(),$this->accessible_nodes)){
+ if(!uint_in_array(get_current_nodeid(),$this->accessible_nodes)){
error('Host ['.$data['name'].'] skipped - Access deny.');
break; // case
}
@@ -213,7 +213,7 @@
break; // case
}
- if(!in_array($group["groupid"], $this->accessible_groups))
+ if(!uint_in_array($group["groupid"], $this->accessible_groups))
{
error('Group ['.$this->element_data.'] skipped - Access deny.');
break; // case
@@ -257,7 +257,7 @@
break; // case
}
- if(!in_array($template["hostid"], $this->accessible_hosts))
+ if(!uint_in_array($template["hostid"], $this->accessible_hosts))
{
error('Template ['.$this->element_data.'] skipped - Access deny.');
break; // case