Title: [opsview] [13185] Fix small warning if parameter not specified
- Revision
- 13185
- Author
- tvoon
- Date
- 2013-08-09 00:54:43 +0100 (Fri, 09 Aug 2013)
Log Message
Fix small warning if parameter not specified
Modified Paths
Modified: trunk/opsview-web/lib/Opsview/Web/Controller/WrapCGI.pm
===================================================================
--- trunk/opsview-web/lib/Opsview/Web/Controller/WrapCGI.pm 2013-08-08 16:40:23 UTC (rev 13184)
+++ trunk/opsview-web/lib/Opsview/Web/Controller/WrapCGI.pm 2013-08-08 23:54:43 UTC (rev 13185)
@@ -142,7 +142,7 @@
sub extinfo : Path('extinfo.cgi') {
my ( $self, $c ) = @_;
- my $cgi_type = $c->req->param( 'type' );
+ my $cgi_type = ( scalar $c->req->param('type') ) || 0;
my $page_title =
$cgi_type == 0 ? $c->loc("ui.nagios.title.processInformation")
_______________________________________________
Opsview-checkins mailing list
Opsview-checkins@lists.opsview.org
http://lists.opsview.org/lists/listinfo/opsview-checkins