Module: nagvis Branch: master Commit: 07b4ce449928e8f43e1aa67619906e2cf9312e7c URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=07b4ce449928e8f43e1aa67619906e2cf9312e7c
Author: LaMi <[email protected]> Date: Thu Apr 1 23:31:38 2010 +0200 Added isset() check to prevent problems which were introduced in latest changes --- .../core/classes/objects/NagVisStatefulObject.php | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/share/server/core/classes/objects/NagVisStatefulObject.php b/share/server/core/classes/objects/NagVisStatefulObject.php index be2c65f..b7611c2 100644 --- a/share/server/core/classes/objects/NagVisStatefulObject.php +++ b/share/server/core/classes/objects/NagVisStatefulObject.php @@ -613,7 +613,10 @@ class NagVisStatefulObject extends NagVisObject { $stateCounts = Array(); $stateWeight = $this->CORE->getMainCfg()->getStateWeight(); foreach($this->aStateCounts AS $sState => $aSubstates) { - if(isset($stateWeight[$sState]['normal']) && $aSubstates['normal'] !== 0) { + if(isset($stateWeight[$sState]) + && isset($stateWeight[$sState]['normal']) + && isset($aSubstates['normal']) + && $aSubstates['normal'] !== 0) { $stateCounts[] = Array('name' => $sState, 'weight' => $stateWeight[$sState]['normal'], 'count' => $aSubstates['normal']); ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
