From: <Wil...@nt...> - 2005-07-03 17:37:11
|
Author: WillNorris Date: 2005-07-03 10:36:25 -0700 (Sun, 03 Jul 2005) New Revision: 4512 Modified: twiki/branches/DEVELOP/lib/TWiki/UI/Oops.pm Log: OopsMoreDoesntRenderNullParameters: The loop in UI::Oops::oops which detects indexed parameters (param1,param2,...) exits prematurely when it encounters a null-value parameter (merging PeterNixon's patch from MultiLevelWikiWebs branch Modified: twiki/branches/DEVELOP/lib/TWiki/UI/Oops.pm =================================================================== --- twiki/branches/DEVELOP/lib/TWiki/UI/Oops.pm 2005-07-03 16:11:09 UTC (rev 4511) +++ twiki/branches/DEVELOP/lib/TWiki/UI/Oops.pm 2005-07-03 17:36:25 UTC (rev 4512) @@ -94,7 +94,7 @@ } else { $tmplName = $query->param( 'template' ); $def = $query->param( 'def' ); - while( my $param = $query->param( 'param'.$n ) ) { + while( defined( my $param = $query->param( 'param'.$n ) )) { push( @params, $param ); $n++; } |