Module: nagvis Branch: master Commit: 681848c450dccd514f2530378b72130d3372b29c URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=681848c450dccd514f2530378b72130d3372b29c
Author: Lars Michelsen <[email protected]> Date: Thu May 27 14:22:06 2010 +0200 Code formating and fixed variable name typo --- share/userfiles/gadgets/gadgets_core.php | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/share/userfiles/gadgets/gadgets_core.php b/share/userfiles/gadgets/gadgets_core.php index 728d7c0..315a538 100644 --- a/share/userfiles/gadgets/gadgets_core.php +++ b/share/userfiles/gadgets/gadgets_core.php @@ -195,7 +195,7 @@ if(isset($_GET['perfdata']) && $_GET['perfdata'] != '') { $aOpts['perfdata'] = $_GET['perfdata']; } elseif(isset($_GET['conf']) && $_GET['conf'] != '' && isset($sDummyPerfdata) && $sDummyPerfdata != '') { $aOpts['perfdata'] = $sDummyPerfdata; -} elseif(strpos ($GET['opts'],'no_perf') === false) { +} elseif(!isset($_GET['opts']) || strpos($_GET['opts'], 'no_perf') === false) { errorBox('ERROR: The needed parameter "perfdata" is missing.'); } @@ -224,8 +224,8 @@ if (isset($_GET['scale']) && $_GET['scale'] != '') { /* Now parse the perfdata */ -if (isset($_GET['opts']) && ($_GET['opts'] != '')) { - if (strpos ($_GET['opts'],'no_perf') === false) { +if(isset($_GET['opts']) && ($_GET['opts'] != '')) { + if(strpos($_GET['opts'],'no_perf') === false) { $aPerfdata = parsePerfdata($aOpts['perfdata']); } } else { ------------------------------------------------------------------------------ _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
