Module: nagvis
Branch: master
Commit: da7895e41f9436f89ea287e9796fe0b2b7bef6ba
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=da7895e41f9436f89ea287e9796fe0b2b7bef6ba

Author: LaMi <[email protected]>
Date:   Tue Nov 17 11:43:06 2009 +0100

Fixed error reporting on invalid object state during state merge

---

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

diff --git a/share/server/core/classes/objects/NagVisStatefulObject.php 
b/share/server/core/classes/objects/NagVisStatefulObject.php
index 4dc879d..4f3aa4c 100644
--- a/share/server/core/classes/objects/NagVisStatefulObject.php
+++ b/share/server/core/classes/objects/NagVisStatefulObject.php
@@ -747,8 +747,8 @@ class NagVisStatefulObject extends NagVisObject {
                                $this->summary_in_downtime = 
$OBJ->getSummaryInDowntime();
                        }
                } else {
-                       //FIXME: Error no valid state
-                       echo $OBJ->getName().": Unkown state: 
".$sObjSummaryState;
+                       // Error no valid state
+                       new GlobalMessage('ERROR', 
GlobalCore::getInstance()->getLang()->getText('The object [NAME] has an invalid 
state "[STATE]".', Array('NAME' => $OBJ->getName(), 'STATE' => 
$sObjSummaryState)));
                }
        }
 }


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to