diff options
| author | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-04-03 10:24:46 +0000 |
|---|---|---|
| committer | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-04-03 10:24:46 +0000 |
| commit | f76c30e882c1ab030b91dbe4ea8581c2b2c6ef05 (patch) | |
| tree | 82d0cc4a1d306007378843e1ee2aacf9b29e9b21 /frontends/php/include/profiles.inc.php | |
| parent | d61b888e2947cc92766cac05abe6f8a238038269 (diff) | |
| download | zabbix-f76c30e882c1ab030b91dbe4ea8581c2b2c6ef05.tar.gz zabbix-f76c30e882c1ab030b91dbe4ea8581c2b2c6ef05.tar.xz zabbix-f76c30e882c1ab030b91dbe4ea8581c2b2c6ef05.zip | |
- added "remove all" option in dashboard menus (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5584 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/profiles.inc.php')
| -rw-r--r-- | frontends/php/include/profiles.inc.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/frontends/php/include/profiles.inc.php b/frontends/php/include/profiles.inc.php index f308430e..3289b71b 100644 --- a/frontends/php/include/profiles.inc.php +++ b/frontends/php/include/profiles.inc.php @@ -203,13 +203,15 @@ function rm4favorites($favobj,$favid,$favcnt=null,$resource=null){ $resource = (is_null($resource))?0:$resource; $favcnt = (is_null($favcnt))?0:$favcnt; + + if($favid == 0) $favcnt = ZBX_FAVORITES_ALL; foreach($favorites as $key => $value){ if(((bccomp($favid,$value) == 0) || ($favid == 0)) && ($fav_rsrc[$key] == $resource)){ if($favcnt < 1){ unset($favorites[$key]); unset($fav_rsrc[$key]); - if($favcnt > ZBX_FAVORITES_ALL) break; + if($favcnt > ZBX_FAVORITES_ALL) break; // foreach } } $favcnt--; |
