summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/services.inc.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-01-11 15:56:27 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-01-11 15:56:27 +0000
commit6d47f4278d61e0efde9cafab7d4dd5477f974891 (patch)
treebbc37342f8d1e95aa4fb63a68c738ba41926cb65 /frontends/php/include/services.inc.php
parent4126039bc0cad4231822bbd07fe9dda5301ab423 (diff)
- [ZBX-253] fixes problem in frontend with long int values (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5240 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/services.inc.php')
-rw-r--r--frontends/php/include/services.inc.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/frontends/php/include/services.inc.php b/frontends/php/include/services.inc.php
index b1b7f782..6ae9e821 100644
--- a/frontends/php/include/services.inc.php
+++ b/frontends/php/include/services.inc.php
@@ -22,7 +22,7 @@
function add_service($name,$triggerid,$algorithm,$showsla,$goodsla,$sortorder,$service_times=array(),$parentid,$childs){
foreach($childs as $id => $child){ //add childs
- if($parentid == $child['serviceid']){
+ if((bccomp($parentid , $child['serviceid'])==0)){
error('Service can\'t be parent and child in onetime.');
return FALSE;
}
@@ -70,7 +70,7 @@
function update_service($serviceid,$name,$triggerid,$algorithm,$showsla,$goodsla,$sortorder,$service_times=array(),$parentid,$childs){
foreach($childs as $id => $child){ //add childs
- if($parentid == $child['serviceid']){
+ if((bccomp($parentid , $child['serviceid'])==0)){
error('Service can\'t be parent and child in onetime.');
return FALSE;
}
@@ -247,7 +247,7 @@
{
return FALSE;
}
- if($serviceid==$serviceid2)
+ if((bccomp($serviceid, $serviceid2)==0))
{
if($service["status"]>0)
{
@@ -293,7 +293,7 @@
return false;
}
- if($servicedownid==$serviceupid){
+ if((bccomp($servicedownid, $serviceupid)==0)){
error("cannot link service to itself.");
return false;
}
@@ -314,7 +314,7 @@
return false;
}
- if($servicedownid==$serviceupid){
+ if((bccomp($servicedownid, $serviceupid)==0)){
error("cannot link service to itself.");
return false;
}
@@ -740,7 +740,7 @@ $dt = 0;
* *
* Return value: *
* *
- * Author: Alexei Vladishev (PHP ver. by Artem Suharev) *
+ * Author: Alexei Vladishev (PHP ver. by Aly) *
* *
* Comments: recursive function !!! Don't forget sync code with C !!! *
* *
@@ -793,7 +793,7 @@ function update_services_rec($serviceid){
* *
* Return value: *
* *
- * Author: Alexei Vladishev (PHP ver. by Artem Suharev) *
+ * Author: Alexei Vladishev (PHP ver. by Aly) *
* *
* Comments: !!! Don't forget sync code with C !!! *
* *
@@ -818,7 +818,7 @@ function update_services($triggerid, $status){
* Cleaning parent nodes from triggers, updating ALL services status.
*
* Author:
- * Artem Suharev
+ * Aly
*
* Comments: !!! Don't forget sync code with C !!!
*