don't spew PHP warnings when checking for 'compact' param

This commit is contained in:
Brion Vibber 2008-03-26 20:58:20 +00:00
parent bd3a1994c0
commit e950babe80

View file

@ -39,7 +39,7 @@ function PoemExtension( $in, $param=array(), $parser=null ) {
/* using newlines in the text will cause the parser to add <p> tags,
* which may not be desired in some cases
*/
$nl = $param['compact']? '' : "\n";
$nl = isset( $param['compact'] ) ? '' : "\n";
if( method_exists( $parser, 'recursiveTagParse' ) ) {
//new methods in 1.8 allow nesting <nowiki> in <poem>.