Author:   Lars Michelsen <[email protected]>
Date:     Wed Oct 19 13:37:01 2011 +0200
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Wed Oct 19 13:37:01 2011 +0200

Bugfix: Fixed problem in summary state detection of downtime (resulted e.g. in 
wrong icons)

---

 ChangeLog                                          |    4 ++++
 .../core/classes/objects/NagVisStatefulObject.php  |    5 +++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index a81d08a..7e3c257 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,8 @@
 1.6rc3
+Core
+  * Bugfix: Fixed problem in summary state detection of downtime (resulted
+    e.g. in wrong icons)
+
 Installer
   * Bugfix: Installing offline docs correctly again
 
diff --git a/share/server/core/classes/objects/NagVisStatefulObject.php 
b/share/server/core/classes/objects/NagVisStatefulObject.php
index 0b2901e..650625c 100644
--- a/share/server/core/classes/objects/NagVisStatefulObject.php
+++ b/share/server/core/classes/objects/NagVisStatefulObject.php
@@ -319,16 +319,17 @@ class NagVisStatefulObject extends NagVisObject {
      * Returns the current sub-state of the object
      */
     public function getSubState($summary = false) {
-        if($summary)
+        if($summary) {
             if($this->summary_problem_has_been_acknowledged == 1)
                 return  'ack';
             elseif($this->summary_in_downtime == 1)
                 return 'downtime';
-        else
+        } else {
             if($this->problem_has_been_acknowledged == 1)
                 return  'ack';
             elseif($this->in_downtime == 1)
                 return 'downtime';
+        }
         return 'normal';
     }
 


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to