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

Author: Lars Michelsen <[email protected]>
Date:   Wed Dec 22 18:02:17 2010 +0100

Catching unset array element

---

 share/server/core/classes/CoreBackendMgmt.php |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/share/server/core/classes/CoreBackendMgmt.php 
b/share/server/core/classes/CoreBackendMgmt.php
index 9a65f96..818358c 100644
--- a/share/server/core/classes/CoreBackendMgmt.php
+++ b/share/server/core/classes/CoreBackendMgmt.php
@@ -314,8 +314,10 @@ class CoreBackendMgmt {
                                                $OBJ->setState($aResult[$name]);
                                else
                                        foreach($OBJS AS $OBJ) {
-                                               
$OBJ->setObjectInformation($aResult[$name]['details']);
-                                               
$OBJ->setStateCounts($aResult[$name]['counts']);
+                                               
if(isset($aResult[$name]['details']))
+                                                       
$OBJ->setObjectInformation($aResult[$name]['details']);
+                                               
if(isset($aResult[$name]['counts']))
+                                                       
$OBJ->setStateCounts($aResult[$name]['counts']);
                                        }
                        else
                                if($type != 'hostMemberState')


------------------------------------------------------------------------------
Forrester recently released a report on the Return on Investment (ROI) of
Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even
within 7 months.  Over 3 million businesses have gone Google with Google Apps:
an online email calendar, and document program that's accessible from your 
browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to