mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Poem
synced 2024-11-15 19:09:37 +00:00
don't spew PHP warnings when checking for 'compact' param
This commit is contained in:
parent
bd3a1994c0
commit
e950babe80
2
Poem.php
2
Poem.php
|
@ -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>.
|
||||
|
|
Loading…
Reference in a new issue