summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/profiles.inc.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-04-03 08:37:04 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-04-03 08:37:04 +0000
commit916277f7e6ad08953f38c949b06cd71716a8b9c4 (patch)
tree9173f6881859e7af371594fb88a52c6974a7a636 /frontends/php/include/profiles.inc.php
parent269993e54f1ba18adc930910d5a4ab6bac5db9e2 (diff)
downloadzabbix-916277f7e6ad08953f38c949b06cd71716a8b9c4.tar.gz
zabbix-916277f7e6ad08953f38c949b06cd71716a8b9c4.tar.xz
zabbix-916277f7e6ad08953f38c949b06cd71716a8b9c4.zip
- fixed template problem in applications (Artem)
- fixes related to compare long id's (Artem) git-svn-id: svn://svn.zabbix.com/trunk@5582 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/profiles.inc.php')
-rw-r--r--frontends/php/include/profiles.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/php/include/profiles.inc.php b/frontends/php/include/profiles.inc.php
index 241fbefc..f308430e 100644
--- a/frontends/php/include/profiles.inc.php
+++ b/frontends/php/include/profiles.inc.php
@@ -205,7 +205,7 @@ function rm4favorites($favobj,$favid,$favcnt=null,$resource=null){
$favcnt = (is_null($favcnt))?0:$favcnt;
foreach($favorites as $key => $value){
- if(($favid == $value) && ($fav_rsrc[$key] == $resource)){
+ if(((bccomp($favid,$value) == 0) || ($favid == 0)) && ($fav_rsrc[$key] == $resource)){
if($favcnt < 1){
unset($favorites[$key]);
unset($fav_rsrc[$key]);
@@ -238,7 +238,7 @@ function infavorites($favobj,$favid,$resource=null){
$fav = get4favorites($favobj);
if(!empty($fav)){
foreach($fav['id'] as $id => $resourceid){
- if($favid == $resourceid){
+ if(bccomp($favid,$resourceid) == 0){
if(is_null($resource) || ($fav['resource'][$id] == $resource))
return true;
}