summaryrefslogtreecommitdiffstats
path: root/frontends/php/dashboard.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-02-22 15:57:05 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-02-22 15:57:05 +0000
commita584d19006ba3659fc6fde7796bfc5d25575c0ab (patch)
treedd94162da9046f9e1a49f0682156415cc5699ab0 /frontends/php/dashboard.php
parent9848b90bd9eddf0324ffdc0d8f089c6c24683fe8 (diff)
downloadzabbix-a584d19006ba3659fc6fde7796bfc5d25575c0ab.tar.gz
zabbix-a584d19006ba3659fc6fde7796bfc5d25575c0ab.tar.xz
zabbix-a584d19006ba3659fc6fde7796bfc5d25575c0ab.zip
- [DEV-118] fix to dashboard screen (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5388 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/dashboard.php')
-rw-r--r--frontends/php/dashboard.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/frontends/php/dashboard.php b/frontends/php/dashboard.php
index cae72970..34dc8d8a 100644
--- a/frontends/php/dashboard.php
+++ b/frontends/php/dashboard.php
@@ -88,7 +88,7 @@ include_once "include/page_header.php";
$favcnt = (isset($_REQUEST['favcnt']))?$_REQUEST['favcnt']:0;
foreach($graphids as $key => $value){
if(($_REQUEST['favid'] == $value) && ($graph_rsrc[$key] == $_REQUEST['favobj'])){
- if(0 == $favcnt){
+ if($favcnt < 1){
unset($graphids[$key]);
unset($graph_rsrc[$key]);
break;
@@ -126,7 +126,7 @@ include_once "include/page_header.php";
$favcnt = (isset($_REQUEST['favcnt']))?$_REQUEST['favcnt']:0;
foreach($sysmapids as $key => $value){
if($_REQUEST['favid'] == $value){
- if(0 == $favcnt){
+ if($favcnt < 1){
unset($sysmapids[$key]);
break;
}
@@ -170,9 +170,9 @@ include_once "include/page_header.php";
$screen_rsrc = get_profile('web.favorite.screen_rsrc',array());
$favcnt = (isset($_REQUEST['favcnt']))?$_REQUEST['favcnt']:0;
- foreach($graphids as $key => $value){
- if(($_REQUEST['favid'] == $value) && ($graph_rsrc[$key] == $_REQUEST['favobj'])){
- if(0 == $favcnt){
+ foreach($screenids as $key => $value){
+ if(($_REQUEST['favid'] == $value) && ($screen_rsrc[$key] == $_REQUEST['favobj'])){
+ if($favcnt < 1){
unset($screenids[$key]);
unset($screen_rsrc[$key]);
break;