Module: nagvis Branch: master Commit: 470e03c9b7cd7462de2d87796e5ae35e44505b06 URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=470e03c9b7cd7462de2d87796e5ae35e44505b06
Author: Lars Michelsen <[email protected]> Date: Tue Oct 5 21:14:37 2010 +0200 Fixed coding error introduced by latest changes --- share/userfiles/gadgets/gadgets_core.php | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/share/userfiles/gadgets/gadgets_core.php b/share/userfiles/gadgets/gadgets_core.php index c9fec03..052350c 100644 --- a/share/userfiles/gadgets/gadgets_core.php +++ b/share/userfiles/gadgets/gadgets_core.php @@ -204,10 +204,12 @@ elseif(!isset($_GET['opts']) || strpos($_GET['opts'], 'no_perf') === false) errorBox('ERROR: The needed parameter "perfdata" is missing.'); /* 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 + } +} else { $aPerfdata = parsePerfdata($aOpts['perfdata']); +} ?> ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
