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/graphs.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/graphs.inc.php')
| -rw-r--r-- | frontends/php/include/graphs.inc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/php/include/graphs.inc.php b/frontends/php/include/graphs.inc.php index 98255cfb..c348b59c 100644 --- a/frontends/php/include/graphs.inc.php +++ b/frontends/php/include/graphs.inc.php @@ -654,7 +654,7 @@ $tmp_host = DBfetch(get_hosts_by_graphid($db_graph['templateid'])); - if( !in_array($tmp_host['hostid'], $templateid)) + if( !uint_in_array($tmp_host['hostid'], $templateid)) continue; } @@ -844,7 +844,7 @@ $period = get_request('period',ZBX_PERIOD_DEFAULT); - if(in_array($period,array(3600,2*3600,4*3600,8*3600,12*3600,24*3600,7*24*3600,31*24*3600,365*24*3600))) + if(uint_in_array($period,array(3600,2*3600,4*3600,8*3600,12*3600,24*3600,7*24*3600,31*24*3600,365*24*3600))) $custom_per = ZBX_MIN_PERIOD; else $custom_per = $period; |
