summaryrefslogtreecommitdiffstats
path: root/frontends/php/services_form.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/services_form.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/services_form.php')
-rw-r--r--frontends/php/services_form.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/frontends/php/services_form.php b/frontends/php/services_form.php
index d9c3780a..78a5d7c5 100644
--- a/frontends/php/services_form.php
+++ b/frontends/php/services_form.php
@@ -361,7 +361,7 @@ if(isset($_REQUEST['sform'])){
while($new_service_time['to'] && ($new_service_time['to'] <= $new_service_time['from'])) $new_service_time['to'] += 7*24*3600;
- if($new_service_time['to'] && !in_array($_REQUEST['service_times'], $new_service_time))
+ if($new_service_time['to'] && !str_in_array($_REQUEST['service_times'], $new_service_time))
array_push($_REQUEST['service_times'],$new_service_time);
} elseif(isset($_REQUEST["del_service_times"]) && isset($_REQUEST["rem_service_times"])){
$_REQUEST["service_times"] = get_request("service_times",array());
@@ -396,7 +396,7 @@ if(isset($_REQUEST['sform'])){
'to'=> $db_stime['ts_to'],
'note'=> $db_stime['note']
);
- if(in_array($stime, $service_times)){
+ if(str_in_array($stime, $service_times)){
continue;
}
array_push($service_times, $stime);
@@ -441,7 +441,7 @@ if(isset($_REQUEST['sform'])){
'triggerid' => $db_service_data["triggerid"],
'soft' => $db_service_data['soft']
);
- if(in_array($child, $childs)){
+ if(str_in_array($child, $childs)){
continue;
}
array_push($childs,$child);